[patch] space "left" is not "right"

Phoca Gallery - image gallery extension
User avatar
Bouss_fr
Phoca Member
Phoca Member
Posts: 11
Joined: 23 Feb 2008, 00:17
Location: France
Contact:

[patch] space "left" is not "right"

Post by Bouss_fr »

Hi there
languages have funny namesakes
english uses the same word for "what is opposite to the right" and "the amount of space that is not used yet"
You guess the answer is "left" :twisted:
But in french, as well as in italian or spanish (non exhaustive list), the translation may look strange to the average user.
Here's a little patch for phocagallery 3.26 to create a new tag (this may be close for V4)

open {root of your website}/language/{your language}/{your language}.com_phocagallery.ini
find

Code: Select all

COM_PHOCAGALLERY_SPECIAL=
Insert on the line before

Code: Select all

COM_PHOCAGALLERY_SPACE_LEFT="{what is the most accurate translation to describe an amount of space that is not used yet}"
for example, in french

Code: Select all

COM_PHOCAGALLERY_SPACE_LEFT="Disponible"
save and upload file

open {root of your website}/components/com_phocagallery/views/user/tmpl/default_user.php
find

Code: Select all

		<td><?php echo $this->tmpl['usersubcategory'] . ' ('.JText::_('COM_PHOCAGALLERY_MAX').': '.$this->tmpl['usersubcatcount'].', '.JText::_('COM_PHOCAGALLERY_LEFT').': '.$this->tmpl['usersubcategoryleft'].')'; ?></td>
Replace with

Code: Select all

		<td><?php echo $this->tmpl['usersubcategory'] . ' ('.JText::_('COM_PHOCAGALLERY_MAX').': '.$this->tmpl['usersubcatcount'].', '.JText::_('COM_PHOCAGALLERY_SPACE_LEFT').': '.$this->tmpl['usersubcategoryleft'].')'; ?></td>
find

Code: Select all

		<td><?php echo $this->tmpl['userimagesspace']. ' ('.JText::_('COM_PHOCAGALLERY_MAX').': '.$this->tmpl['userimagesmaxspace'].', '.JText::_('COM_PHOCAGALLERY_LEFT').': '.$this->tmpl['userimagesspaceleft'].')'; ?></td>
Replace with

Code: Select all

		<td><?php echo $this->tmpl['userimagesspace']. ' ('.JText::_('COM_PHOCAGALLERY_MAX').': '.$this->tmpl['userimagesmaxspace'].', '.JText::_('COM_PHOCAGALLERY_SPACE_LEFT').': '.$this->tmpl['userimagesspaceleft'].')'; ?></td>
save and upload file

This have been suggested here

Hope this helps!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [patch] space "left" is not "right"

Post by Jan »

Hi, thank you for the info, I will take a look at it for next version.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [patch] space "left" is not "right"

Post by Jan »

Set in 4.0.3
If you find Phoca extensions useful, please support the project
Post Reply