[Phpmyadmin-devel] Question on i18n

Marc Delisle marc at infomarc.info
Sun May 15 13:41:13 CEST 2011


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'];
}

-- 
Marc Delisle
http://infomarc.info




More information about the Developers mailing list