Many PHP programs make use of a localisable string array. The toolkit supports the full localisation of such files with php2po and po2php.
Our format support allows:
$variable = 'string';
$another_variable = "another string";
Various layouts of the id
$string['name'];
$string['name'] ;
$string[name];
$string[ 'name' ];
PHP array syntax for localisation (since > 1.6.0)
$lang = array(
'name' => 'value',
'name2' => 'value2',
);
PHP define syntax
define('item', 'string');
define("another_item", "another string");
Whitespace before end delimiter
$string['name'] ;
$string['name'] ;