Procedural File: client2pot.php
Source Location: /scripts/client2pot.php
Page Details:
client2pot.php - rips gettext strings from smarty template and client .ini
This command line script rips gettext strings from smarty file and .ini, and save one file per project. If file already exists, calls msgmerge. Usage: ./client2pot.php Original code was tsmarty2c.php written by Sagi Bashari <sagi@boom.org.il>
Tags:
Includes:
CARTOCLIENT_HOME [line 21]
CARTOCLIENT_PODIR [line 22]
do_dir [line 91]
void do_dir(
string $dir, string $project, array &$texts, array &$plurals)
|
|
Goes through a directory
Parameters
| string |
$dir |
|
| string |
$project |
project name or 'default' |
| array |
&$texts |
map text_to_translate => references |
| array |
&$plurals |
map of texts plurals |
do_file [line 56]
void do_file(
string $file, array &$texts, array &$plurals)
|
|
Rips gettext strings from $file and prints them in POT format
Parameters
| string |
$file |
|
| array |
&$texts |
map text_to_translate => references |
| array |
&$plurals |
map of texts plurals |
fs [line 43]
"Fix" string - strip slashes, escape and convert new lines to \n
Parameters
parseIni [line 133]
boolean parseIni(
string $project, array &$texts)
|
|
Parses an INI file looking for variable ending with '.label'
Parameters
| string |
$project |
|
| array |
&$texts |
map text_to_translate => references |
|