Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
genTestLocale Class Reference
Inheritance diagram for genTestLocale:

Public Member Functions

 execute ()
 fancifyString ($str)
 generateLocaleFile ($localeFile, $localeFilePath, $outFile)
 genTestLocale ($argv=array())

Additional Inherited Members

- Public Attributes inherited from CommandLineTool

Detailed Description

CLI tool to generate a test locale file by munging the message strings of a real locale file.

Definition at line 26 of file genTestLocale.php.

Member Function Documentation

genTestLocale::execute ( )

Create the test locale file.

Definition at line 77 of file genTestLocale.php.

References generateLocaleFile(), and AppLocale\makeComponentMap().

genTestLocale::fancifyString (   $str)

Perform message string munging.


Definition at line 155 of file genTestLocale.php.

Referenced by generateLocaleFile().

genTestLocale::generateLocaleFile (   $localeFile,

Perform message string munging.


Definition at line 94 of file genTestLocale.php.

References fancifyString(), and LocaleFile\load().

Referenced by execute().

genTestLocale::genTestLocale (   $argv = array())


$argvarray command-line arguments If specified, the first parameter should be the input locale (default "en_US") and the second parameter the output locale (default "te_ST")

Definition at line 37 of file genTestLocale.php.

References CommandLineTool\$argv.

The documentation for this class was generated from the following file: