-
Hello Scholar !
This method (compileLanguage) takes the data from the database, not from the XML files. The method installLanguage uses the XML-files as source.
-
Yes, lang keys and strings are placed into sys_localization_ tables only. Yes, Polyglot creates the new pair key-string in the database tables `sys_localization_keys` and `sys_localization_strings` and then translates them to the language file (it is rewritten completely).
-
one last question, when polyglot rewrite the lang-php cache files after adding a new pair, which function does it use? is it restore or recompile function?
-
The following code:
if(!BxDolStudioLanguagesUtils::getInstance()->updateLanguageStringById($iId, $aStrings))
call the next one:
if($bRecompile)
$this->compileLanguage($aLanguage['id']);