Procedural File: po2mo.php
Source Location: /scripts/po2mo.php
Page Details:
po2mo.php - compile PO files
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Usage: php po2mo.php [projectname]
Tags:
Includes:
CALLED_BY_CW3_SETUP [line 39]
CARTOCLIENT_LOCALEDIR [line 33]
CARTOCLIENT_PODIR [line 32]
compile [line 266]
boolean compile(
string $project, string $fileName)
|
|
Compiles PO files into MO
Tags:
Parameters
string |
$project |
|
string |
$fileName |
|
getIniArray [line 83]
array getIniArray(
[string $project = NULL])
|
|
Retrieves config from upstream and project client.ini.
Parameters
string |
$project |
project name (optional) |
getLocales [line 54]
array getLocales(
string $project)
|
|
Finds locales by looking for my_project.lang.po files
Parameters
getMapIdFromIni [line 311]
string getMapIdFromIni(
string $project, [array $iniArray = NULL])
|
|
Retrieves the 'mapId' parameter in project client.ini config.
Parameters
string |
$project |
project name |
array |
$iniArray |
array of ini parameters (optional) |
getMapPo [line 105]
string getMapPo(
string $project, [string $mapId = null])
|
|
Retrieves PO files from server.
Tags:
Parameters
string |
$project |
|
string |
$mapId |
|
merge [line 209]
boolean merge(
string $project, string $file1, string $file2, string $file2Project, mixed $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 |
$file2Project |
|
|