Exemplo n.º 1
0
 public function translateTemplate($untranslated, $moduleName, $templateName, $language = null)
 {
     // $translations is expected to be an array
     $translations = Locator::getInstance()->getTemplateTranslation($moduleName, $templateName, $language);
     if (is_array($translations)) {
         $translations = array();
     }
     return TextProcessor::doTextVariation($untranslated, '[[', ']]', $translations);
 }
Exemplo n.º 2
0
 /**
  * @return \Generated\Client\Ide\AutoCompletion
  */
 public function getLocator()
 {
     return Locator::getInstance();
 }