Exemplo n.º 1
0
 /**
  * Compile a module domain
  *
  * This will compile the PO-file of the given module domain.
  *
  * USAGE:
  *
  *   icingacli translation compile <module> <locale>
  *
  * EXAMPLES:
  *
  *   icingacli translation compile monitoring de_DE
  *   icingacli trnslations compile monitoring de_DE
  */
 public function moduleAction()
 {
     $module = $this->validateModuleName($this->params->shift());
     $locale = $this->validateLocaleCode($this->params->shift());
     $helper = new GettextTranslationHelper($this->app, $locale);
     $helper->compileModuleTranslation($module);
 }
Exemplo n.º 2
0
 /**
  * Get the gettext translation helper
  *
  * @param   string $locale
  *
  * @return  GettextTranslationHelper
  */
 public function getTranslationHelper($locale)
 {
     $helper = new GettextTranslationHelper($this->app, $locale);
     $helper->setConfig($this->Config());
     return $helper;
 }