|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct ($argv=array()) | |
| execute () | |
| usage () | |
Static Public Member Functions | |
| static | convertFile ($source, $target) |
| static | parseLocaleFile ($filename) |
Protected Attributes | |
| $source | |
| $target | |
Additional Inherited Members | |
Data Fields inherited from CommandLineTool | |
| $argv | |
| $scriptName | |
Definition at line 16 of file xmlToPo.php.
| xmlToPo::__construct | ( | $argv = array() | ) |
Constructor
Reimplemented from CommandLineTool.
Definition at line 32 of file xmlToPo.php.
References CommandLineTool\$argv, $source, and usage().
|
static |
Convert a file from XML to PO.
| $source | Source filename |
| $target | Target filename |
Definition at line 100 of file xmlToPo.php.
References $source, $target, and parseLocaleFile().
Referenced by execute().
| xmlToPo::execute | ( | ) |
Convert XML locale content to PO format.
Definition at line 119 of file xmlToPo.php.
References convertFile().
|
static |
Parse a locale file into an array.
| $filename | string Filename to locale file |
Definition at line 80 of file xmlToPo.php.
Referenced by convertFile().
| xmlToPo::usage | ( | ) |
Print command usage information.
Reimplemented from CommandLineTool.
Definition at line 67 of file xmlToPo.php.
Referenced by __construct().
|
protected |
Name of source file/directory
Definition at line 21 of file xmlToPo.php.
Referenced by __construct(), and convertFile().
|
protected |
Name of target file/directory
Definition at line 27 of file xmlToPo.php.
Referenced by convertFile().