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:
Includes:
CARTOSERVER_PODIR [line 19]
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 |
dummyErrorHandler [line 45]
void dummyErrorHandler(
mixed $errno, mixed $errmsg, mixed $filename, mixed $linenum, mixed $vars)
|
|
getTranslatedMapIdPo [line 119]
array getTranslatedMapIdPo(
string $project, mixed $mapId)
|
|
Finds list of already translated PO files for a project and a map ID
Parameters
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 |
|