Beispiel #1
0
 /**
  * Expand a translated string, and escape the output to meet XHTML safety needs
  *
  * @param string $module  where is the translation for this string?
  * @param string $message what is the name of this translation?
  * @param array  $params  any parameters required by the translation
  * @return string the translated string, expanded and suitably escaped for XHTML
  */
 public static function translation($module, $message, $params = array())
 {
     return XHTML::escapeOutput(app_translation($module, $message, $params), ENT_QUOTES, 'UTF-8', false);
 }
Beispiel #2
0
 public function expandLinkText()
 {
     if (!isset($this->routeLangModule)) {
         throw new Routing_E_NoLinkText($this->routeName);
     }
     return app_translation($this->routeLangModule, $this->routeLangName);
 }