Go to the source code of this file.
Enumerations | |
enum | ALL_LANGUAGES |
This is a command line script. More... | |
enum | XGETTEXT_BIN |
enum | MSGMERGE_BIN |
enum | XGETTEXT_OPTIONS |
enum | MSGMERGE_OPTIONS |
enum | LOCALE_OUTPUT_DIR |
Functions | |
if(isset($options['help'])) if(!isset($options['lang'])) | usage () |
poHeader () | |
Return a dummy header for later edition. | |
generatePo ($langcode, $messages) | |
generate and write a file in .po format. | |
generatePot () | |
applyPot ($langcode) | |
Variables | |
$optionsWithArgs [] = 'lang' | |
$langTool = new languages() |
Todo:
Definition in file lang2po.php.
enum ALL_LANGUAGES |
enum LOCALE_OUTPUT_DIR |
Definition at line 27 of file lang2po.php.
enum MSGMERGE_BIN |
Definition at line 21 of file lang2po.php.
enum MSGMERGE_OPTIONS |
Definition at line 25 of file lang2po.php.
enum XGETTEXT_BIN |
Definition at line 20 of file lang2po.php.
enum XGETTEXT_OPTIONS |
Definition at line 24 of file lang2po.php.
applyPot | ( | $ | langcode | ) |
generatePo | ( | $ | langcode, | |
$ | messages | |||
) |
generate and write a file in .po format.
string | $langcode Code of a language it will process. | |
array | &$messages Array containing the various messages. |
Definition at line 77 of file lang2po.php.
References $file, $filename, $messages, and poHeader().
generatePot | ( | ) |
poHeader | ( | ) |
Return a dummy header for later edition.
Definition at line 48 of file lang2po.php.
Referenced by generatePo().
$langTool = new languages() |
Definition at line 140 of file lang2po.php.
$optionsWithArgs[] = 'lang' |
Definition at line 13 of file lang2po.php.