Пример #1
0
 /**
  * BFText::_(string) does the same like JText::_(string), except that it reloads the
  * language for com_breezingforms if a key is not set. A key could be not set from within the HTML_* view functions because the language
  * is not loaded there. So if one text request comes from one of these view functions, 
  * it makes sure that the language is always been loaded (of course in a lazy way).
  *
  * @param string
  * @return string
  */
 public static function _($name)
 {
     $bftext = BFText::getInstance();
     if (!$bftext->language->hasKey($name)) {
         $bftext->language->load(BFText::COMPONENT_NAME);
     }
     // ok, loaded and ready to go
     return JText::_($name);
 }