TOK_NID
TOK_NID
NimrodPOUtil class.
Minimal working code example:
require 'class.nimrod.poutil.php'; $poutil = new NimrodPOUtil; // Assuming some $pofile and a $items catalog: echo $poutil->read($pofile)->update($items)->sort();
read(string $pofile) : \NimrodPOUtil
Read PO file.
string | $pofile | The (path to) PO file. |
update(array $items) : \NimrodPOUtil
Update message catalog.
array | $items | The message catalog. |
sort(array $weights = array()) : \NimrodPOUtil
Sort messages in the message catalog.
array | $weights | Sorting weights (optional). |