-
1-2) It is processed by method installLanguage by the mentioned BxDolStudioLanguagesUtils class. All new keys and values will be recorded to the database and then the file cache/lang-[lang name].php will be generated.
3) Polyglot makes the changes in the database for all keys, but during the restoration updates only those keys which were existing in the original XML files of this language.
-
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']);