Convert a PO file to json string
Definition at line 13 of file buildTools/po2js.php.
Construct the object
- Parameters
-
string | $pofile | path to the po file |
- Exceptions
-
Definition at line 26 of file buildTools/po2js.php.
Construct the object
- Parameters
-
string | $pofile | path to the po file |
- Exceptions
-
Definition at line 29 of file programs/po2js.php.
memoEntry |
( |
|
$key, |
|
|
|
$text, |
|
|
|
$ctxt = '' |
|
) |
| |
|
protected |
Clean a key and a translation and add them to $this->entries
- Parameters
-
Definition at line 87 of file buildTools/po2js.php.
memoEntry |
( |
|
$key, |
|
|
|
$text, |
|
|
|
$ctxt = '' |
|
) |
| |
|
protected |
Clean a key and a translation and add them to $this->entries
- Parameters
-
string | $key | text to translate |
string | $text | translation |
string | $ctxt | context |
Definition at line 93 of file programs/po2js.php.
Convert multiples quoted msg lines into a single unquoted line:
["foo..."\n"bar..."\n"baz..."] => [foo...bar...baz...]
- Parameters
-
- Returns
- string
Definition at line 119 of file programs/po2js.php.
Convert the current PO file to a json string
JSON contains an object where key are po key and content po translation if there is no translation return an empty string
- Returns
- string
Definition at line 44 of file buildTools/po2js.php.
Convert the current PO file to a json string
JSON contains an object where key are po key and content po translation if there is no translation return an empty string
- Returns
- string
Definition at line 45 of file programs/po2js.php.
unescapeGettextControlSeq |
( |
|
$str | ) |
|
|
protected |
The documentation for this class was generated from the following file: