Page 1 of 1

No backend/translation-constant for slideshow description

Posted: 21 Dec 2013, 15:50
by rob-van-baal
Hello Phoca team,

(using Joomla 3.2.0 with Galery 4.0.4)

When configuring the Slideshow settings, I found out that there is something missing!

There is no unique constant in the config.xml in order to show the correct text in the backend gui. Please note the following code in the config.xml:

Code: Select all

<field name="slideshow_random" type="list" default="0" label="COM_PHOCAGALLERY_FIELD_SLIDESHOW_RANDOM_LABEL" description="COM_PHOCAGALLERY_FIELD_SLIDESHOW_RANDOM_DESC">
	<option value="1">COM_PHOCAGALLERY_YES</option>
	<option value="0">COM_PHOCAGALLERY_NO</option>
</field>

<field name="slideshow_description" type="list" default="peekaboo" label="COM_PHOCAGALLERY_FIELD_SLIDESHOW_RANDOM_LABEL" description="COM_PHOCAGALLERY_FIELD_SLIDESHOW_RANDOM_DESC">
	<option value="ondemand">COM_PHOCAGALLERY_ONDEMAND</option>
	<option value="always">COM_PHOCAGALLERY_ALLWAYS</option>
	<option value="peekaboo">COM_PHOCAGALLERY_PEEKABOO</option>
	<option value="none">COM_PHOCAGALLERY_NONE</option>
</field> 
Both the slideshow random setting as the slideshow description setting use:
label="COM_PHOCAGALLERY_FIELD_SLIDESHOW_RANDOM_LABEL" description="COM_PHOCAGALLERY_FIELD_SLIDESHOW_RANDOM_DESC"


Fot the slideshow description there should be a new constant, something like:
label="COM_PHOCAGALLERY_FIELD_SLIDESHOW_DESCRIPTION_LABEL" description="COM_PHOCAGALLERY_FIELD_SLIDESHOW_DESCRIPTION_DESC"

which you then can use in the backend language file en-GB.com_phocagallery.ini to fill them with correct info like:
COM_PHOCAGALLERY_FIELD_SLIDESHOW_DESCRIPTION_LABEL="Show description"
COM_PHOCAGALLERY_FIELD_SLIDESHOW_DESCRIPTION_DESC="Choose how to handle the description. 'On demand': At mouse over the slide show; 'Always': description in persistant panel at foot of slideshow; 'Peekaboo': sliding description in and out; 'None': hide description."

Would be nice to have this solved in next release!

Good luck.

Rob.

Re: No backend/translation-constant for slideshow descriptio

Posted: 25 Dec 2013, 03:37
by Jan
Hi, thank you for the info, yes, this is a typo error, I will fix it in the next version.

Thank you, Jan