Page 1 of 1

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

Posted: 31 Aug 2013, 20:33
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!

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

Posted: 03 Sep 2013, 20:05
by Jan
Hi, thank you for the info, I will take a look at it for next version.

Jan

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

Posted: 07 Nov 2013, 01:10
by Jan
Set in 4.0.3