A function has been created in PHP to retrieve the translations of the language codes: _T
.
It is used very simply as shown below:
_T('code');
_T('prefix:code');
_T('prefix1/.../prefixN:code');
_T('prefix:code', array('param'=>'value'));
Character strings during development
You may sometimes run into the _L
function, which is used to signify: "Character string to be assigned a language code when development is nearly finished". The general idea, is that during development of SPIP or plugin functionality, the language strings may change quite frequently. In order to distinguish strings which have already been translated in the language files from those that have just recently been created, we generally apply the _L
function.
_L('This text will need to be codified and translated!');
When the code development has stabilised, a search through the code for uses of the "_L" function makes it easy to replace such character strings with appropriate language codes (and then use the _T
function instead).