/** * 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); }
/** * 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; }