Translate of view of user

Phoca Gallery - image gallery extension
muriloelias
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 02 Jun 2011, 02:01

Translate of view of user

Post by muriloelias »

Hi,

I finded one bug in code of PG.

The translade of view of user at file:com_phocagallery\views\user\view.html.php line 359 360 is static:

$state_image[] = JHTML::_('select.option', 'P', JText::_( 'Published' ) );
$state_image[] = JHTML::_('select.option', 'U', JText::_( 'Unpublished') );

and i change to

$state_image[] = JHTML::_('select.option', 'P', JText::_( 'COM_PHOCAGALLERY_FIELD_PUBLISHED_LABEL' ) );
$state_image[] = JHTML::_('select.option', 'U', JText::_( 'COM_PHOCAGALLERY_FIELD_UNPUBLISHED_LABEL') );

And add COM_PHOCAGALLERY_FIELD_UNPUBLISHED_LABEL on translate.


Sorry for my Enghish.

Thanks for the job mans.

Bye.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Translate of view of user

Post by Jan »

Hi, thank you for this info, I will fix it.

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

Re: Translate of view of user

Post by Jan »

Fixed in 3 stable
If you find Phoca extensions useful, please support the project
Post Reply