Class Socialveo\Tasks\ExtractlangTask

InheritanceSocialveo\Tasks\ExtractlangTask » Socialveo\Tasks\BaseTask » Phalcon\CLI\Task

Class ExtractlangTask

Property Details

$domains protected property
protected array $domains = ['core']
$excludeDirs protected property
protected array $excludeDirs = ['vendor''node_modules''cache''migrations']
$jsDirs protected property
protected array $jsDirs = []
$jsLocaleDir protected property
protected string $jsLocaleDir null
$phpDirs protected property
protected array $phpDirs = []
$phtmlDirs protected property
protected array $phtmlDirs = []
$sql protected property
protected array $sql = []
$viewsDirs protected property
protected array $viewsDirs = []
$widgetDirs protected property
protected array $widgetDirs = []

Method Details

escapeJsUtf8() protected method

protected mixed escapeJsUtf8 ( $string )
$string string
extractSql() protected method

Extract phrases from sql

protected void extractSql ( &$phrases )
$phrases array
fixQuotes() protected method

protected string fixQuotes ( $str, $quote '"' )
$str string
$quote string
initialize() public method

Initialize

public void initialize ( )
mainAction() public method

public void mainAction ( array $params )
$params array
throws Exception
parseHbs() protected method

protected void parseHbs ( &$phrases, &$jsUses, $file, $filename )
$phrases array
$jsUses array
$file string
$filename string
parseJs() protected method

protected void parseJs ( &$phrases, &$jsUses, $file, $filename )
$phrases array
$jsUses array
$file string
$filename string
parsePhp() protected method

protected void parsePhp ( &$phrases, &$phrases_nquery, $file, $filename )
$phrases array
$phrases_nquery array
$file string
$filename string
parseVolt() protected method

protected void parseVolt ( &$phrases, &$phrases_nquery, $view, $filename )
$phrases array
$phrases_nquery array
$view string
$filename string
removeExtraSlashes() protected method

Remove extra slashes from path

protected mixed removeExtraSlashes ( $path )
$path string
saveJsFiles() protected method

protected void saveJsFiles ( $jsLocaleDir, $locales, $jsUses )
$jsLocaleDir string
$locales array
$jsUses array
savePoFiles() protected method

protected void savePoFiles ( $localeDir, $localeDomain, $locales, $locales_nquery, $phrases, $phrases_nquery, $languages )
$localeDir string
$localeDomain string
$locales string
$locales_nquery string
$phrases string
$phrases_nquery string
$languages array
scanDirectory() protected method

protected array scanDirectory ( &$files, $dir, $ext 'volt' )
$files array
$dir string
$ext string|array
throws Exception
scanLocales() protected method

protected void scanLocales ( &$languages, &$locales, &$locales_nquery, $localeDir )
$languages array
$locales array
$locales_nquery array
$localeDir string
throws Exception
separateLine() protected method

protected string separateLine ( $string, $max_length 80 )
$string string
$max_length integer