Language string extractor
$_exclude
protected array
$_extractCore
protected boolean
$_extractValidation
protected boolean
$_file
protected string
$_files
protected array
$_merge
protected boolean
$_output
protected string
$_paths
protected string
$_storage
protected string
$_tokens
protected array
$_translations
protected array
$_validationDomain
protected boolean
Looks for models in the application and extracts the validation messages to be added to the translation map
Returns whether this execution is meant to extract string only from directories in folder represented by the APP constant, i.e. this task is extracting strings from same application.
Process a validation rule for a field and looks for a message to be added to the translation map
_addTranslation( string $category , string $domain , string $msgid , array $details array() )
Add a translation to the internal translations property
Takes care of duplicate translations
$category
$domain
$msgid
$details
optional array() _buildFiles( )
Build the translate template file contents out of obtained strings
_extractPluginValidationMessages( string $plugin null )
Extract validation messages from application or plugin models
$plugin
optional null null
to process application models_extractValidationMessages( )
Looks for models in the application and extracts the validation messages to be added to the translation map
_formatString( string $string )
Format a string to be added as a translatable string
$string
_getStrings( integer $position , integer $target )
Get the strings from the position forward
$position
$target
_isExtractingApp( )
Returns whether this execution is meant to extract string only from directories in folder represented by the APP constant, i.e. this task is extracting strings from same application.
_isPathUsable( string $path )
Checks whether or not a given path is usable for writing.
$path
_markerError( string $file , integer $line , string $marker , integer $count )
Indicate an invalid marker on a processed file
$file
$line
$marker
$count
_parse( string $functionName , array $map )
Parse tokens
$functionName
$map
_processValidationRules( string $field , array $rules , string $file , string $domain , string $category 'LC_MESSAGES' )
Process a validation rule for a field and looks for a message to be added to the translation map
$field
$rules
$file
$domain
$category
optional 'LC_MESSAGES' _store( string $category , string $domain , string $header , string $sentence )
Prepare a file to be stored
$category
$domain
$header
$sentence
_writeHeader( )
Build the translation template header
getOptionParser( )
Gets the option parser instance and configures it.
ConsoleOptionParser
protected boolean
Holds whether this call should extract the CakePHP Lib messages
false
protected boolean
Holds whether this call should extract model validation messages
true
protected boolean
Merge all domain and category strings into the default.pot file
false
protected array
Extracted strings indexed by category, domain, msgid and context.
array()
protected boolean
Holds the validation string domain to use for validation messages when extracting
'default'
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/2.9/class-ExtractTask.html