Scripts

# 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:
version: | $Id: po2mo.php,v 1.29 2006/04/10 10:08:37 sypasche Exp $
author: | Yves Bolognini <yves.bolognini@camptocamp.com>
#### Includes: require_once(CARTOWEB_HOME.'scripts/pot_tools.php') [line 35] require_once(CARTOWEB_HOME.'common/ProjectHandler.php') [line 47] Project handler class for constants require_once(CARTOWEB_HOME.'client/Internationalization.php') [line 36] require_once(CARTOWEB_HOME.'cw3setup.php') [line 38] ### CALLED_BY_CW3_SETUP [line 39]
`CALLED_BY_CW3_SETUP = false`
[ Top ] ### CARTOCLIENT_LOCALEDIR [line 33]
`CARTOCLIENT_LOCALEDIR = CARTOWEB_HOME.'locale/'`
[ Top ] ### CARTOCLIENT_PODIR [line 32]
`CARTOCLIENT_PODIR = 'po/'`
[ Top ] ### compile [line 266]
`boolean compile( string $project, string $fileName)`
Compiles PO files into MO #### Tags:
return: | true if OK
#### Parameters
string | $project |
string | $fileName |
[ Top ] ### getIniArray [line 83]
`array getIniArray( [string $project = NULL])`
Retrieves config from upstream and project client.ini. #### Parameters
string | $project | project name (optional)
[ Top ] ### getLocales [line 54]
`array getLocales( string $project)`
Finds locales by looking for my_project.lang.po files #### Parameters
string | $project |
[ Top ] ### 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)
[ Top ] ### getMapPo [line 105]
`string getMapPo( string $project, [string $mapId = null])`
Retrieves PO files from server. #### Tags:
return: | retrieved file name
#### Parameters
string | $project |
string | $mapId |
[ Top ] ### 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:
return: | true if OK
#### Parameters
string | $project |
string | $file1 |
string | $file2 |
string | $file2Project |
[ Top ] Documentation generated on Fri, 21 Sep 2007 13:30:56 +0200 by phpDocumentor 1.3.0RC3