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

Public Member Functions

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

Additional Inherited Members

- Public Attributes inherited from CommandLineTool
 $argv
 
 $scriptName
 

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.

Parameters
$strstring
Returns
string

Definition at line 155 of file genTestLocale.php.

Referenced by generateLocaleFile().

genTestLocale::generateLocaleFile (   $localeFile,
  $localeFilePath,
  $outFile 
)

Perform message string munging.

Parameters
$localeFilestring
$localeFilePathstring
$outFilestring

Definition at line 94 of file genTestLocale.php.

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

Referenced by execute().

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

Constructor.

Parameters
$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: