Page 1 of 1

Translate of view of user

Posted: 02 Jun 2011, 02:07
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.

Re: Translate of view of user

Posted: 08 Jun 2011, 00:13
by Jan
Hi, thank you for this info, I will fix it.

Jan

Re: Translate of view of user

Posted: 08 Jun 2011, 20:31
by Jan
Fixed in 3 stable