Пример #1
0
 /**
  * Load the module  tempalte lauguage files
  * @param module - the name of the module we are working with
  * @param templates - an array of templates this module uses
  * @param lang - current language this module use
  * @param loaded_mod_strings - the string that we will add the module template language  into
  */
 function loadTemplateLanguage($module, $templates, $lang, $loaded_mod_strings)
 {
     $templates = array_reverse($templates);
     foreach ($templates as $template) {
         $temp = LanguageManager::addTemplate($module, $lang, $template);
         $loaded_mod_strings = sugarLangArrayMerge($loaded_mod_strings, $temp);
     }
     return $loaded_mod_strings;
 }