Ejemplo n.º 1
0
 /**
  * Returns the first available string in the user's language, faling that in the 
  * same major language (first part of the locale), failing that the first available 
  * string
  *
  * @return UTF-8 string 
  */
 public function getString()
 {
     $smarty = SmartyWifidog::getObject();
     $name = 'string_' . $this->getId();
     smarty_resource_string_add_string($name, parent::getString());
     //echo $smarty->fetch("string:$name");
     return $smarty->fetch("string:{$name}");
 }