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