Scripts

# Procedural File: server2pot.php Source Location: /scripts/server2pot.php ## Page Details: server2pot.php - generates PO templates, merge with old PO files Uses .ini (for layer labels) and .map (for class names) Usage: ./server2pot.php #### Tags:
author: | Yves Bolognini <yves.bolognini@camptocamp.com>
#### Includes: require_once('./pot_tools.php') [line 21] ### CARTOSERVER_PODIR [line 19]
`CARTOSERVER_PODIR = 'po/'`
[ Top ] ### addMapText [line 36]
`void addMapText( string $text, string $mapId, array &$texts)`
Adds a reference #### Parameters
string | $text |
string | $mapId |
array | &$texts | map text_to_translate => references
[ Top ] ### dummyErrorHandler [line 45]
`void dummyErrorHandler( mixed $errno, mixed $errmsg, mixed $filename, mixed $linenum, mixed $vars)`
[ Top ] ### getTranslatedMapIdPo [line 119]
`array getTranslatedMapIdPo( string $project, mixed $mapId)`
Finds list of already translated PO files for a project and a map ID #### Parameters
string | $project |
[ Top ] ### parseMap [line 55]
`boolean parseMap( string $project, string $mapId, array &$texts)`
Parses a MAP file looking for class names and 'query_returned_attributes' metadata #### Parameters
string | $project |
string | $mapId |
array | &$texts | map text_to_translate => references
[ Top ] Documentation generated on Fri, 21 Sep 2007 13:31:02 +0200 by phpDocumentor 1.3.0RC3