[Phpmyadmin-devel] Question on i18n
Tyron Madlener
tyronx at gmail.com
Mon May 23 18:12:57 CEST 2011
Another question:
If I remove or alter an existing language string do I have to do
anything or does the pootle system automatically recognizes any
changes?
On Sun, May 15, 2011 at 2:28 PM, Tyron Madlener <tyronx at gmail.com> wrote:
> On Sun, May 15, 2011 at 1:41 PM, Marc Delisle <marc at infomarc.info> wrote:
>> Le 2011-05-15 05:25, Tyron Madlener a écrit :
>>> In most files language strings are being included directly with the
>>> __() function, however in server_status.php in the first lines of code
>>> are a huge amount of variables being set to the language strings, that
>>> are later used. Like those:
>>>
>>> $strShowStatusDelayed_writesDescr = __('The number of INSERT DELAYED
>>> rows written.');
>>> $strShowStatusFlush_commandsDescr = __('The number of executed FLUSH
>>> statements.');
>>> $strShowStatusHandler_commitDescr = __('The number of internal COMMIT
>>> statements.');
>>>
>>> Does that have any particular reason?
>>
>> Yes. The current logic builds the messages using the message names:
>>
>> if (isset($GLOBALS['strShowStatus' . $name . 'Descr'])) {
>> echo $GLOBALS['strShowStatus' . $name . 'Descr'];
>> }
>>
>
> Oh, I see. Thanks!
>
>> --
>> Marc Delisle
>> http://infomarc.info
>>
>> ------------------------------------------------------------------------------
>> Achieve unprecedented app performance and reliability
>> What every C/C++ and Fortran developer should know.
>> Learn how Intel has extended the reach of its next-generation tools
>> to help boost performance applications - inlcuding clusters.
>> http://p.sf.net/sfu/intel-dev2devmay
>> _______________________________________________
>> Phpmyadmin-devel mailing list
>> Phpmyadmin-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
>>
>
More information about the Developers
mailing list