Procedural File: po2mo.php
Source Location: /scripts/po2mo.php
Page Details:
po2mo.php - compile all PO files
Usage: ./po2mo.php
Tags:
Includes:
CARTOCLIENT_LOCALEDIR [line 18]
compile [line 219]
boolean compile(
string $project, string $fileName)
|
|
Compiles PO files into MO
Tags:
Parameters
| string |
$project |
|
| string |
$fileName |
|
getLocales [line 34]
array getLocales(
string $project)
|
|
Finds locales by looking for my_project.lang.po files
Parameters
getMapIds [line 251]
array getMapIds(
string $project)
|
|
Gets list of map Ids by reading project directory
Parameters
getMapPo [line 59]
string getMapPo(
string $project, [string $mapId = null])
|
|
Retrieves PO from server If not in direct mode, will retrieve file using CURL. This needs CURL to be installed in PHP environment.
Tags:
Parameters
| string |
$project |
|
| string |
$mapId |
|
merge [line 147]
boolean merge(
string $project, string $file1, string $file2, string $output)
|
|
Merges two PO files Writes out all messages of first file, then writes out messages from second file if not present in first one.
Tags:
Parameters
| string |
$project |
|
| string |
$file1 |
|
| string |
$file2 |
|
| string |
$output |
|
|