Translations of this page?:

PHP

Many PHP programs make use of a localisable string array. The toolkit support the full localisation of such files with php2po and po2php.

Example

The localisable string arrays appear like this:

<?php
$string['name'] = 'value'

Conformance

Our format support allows:

  • PHP escaping (both for single and double quoted strings)
  • Multiline entries
  • Various layouts of the id:
$string['name']
$string[name]
$string[ 'name' ]

Non-Conformance

The following are not yet supported:

  • PHP array syntax for localisation
$lang = array(
   'name' => 'value',
   'name2' => 'value2',
);
toolkit/php.txt · Last modified: 2009/03/26 09:21 by friedelwolff
Recent changes RSS feed GNU General Public License Driven by DokuWiki Get Pootle, Virtaal & the Translate Toolkit at SourceForge.net. Fast, secure and Free Open Source software downloads