Comment to 'Language 'Recompile' bug'
  •  All new keys and values will be recorded to the database (are they sys_localization_ tables only? any other tables involved?)

    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 (what happens then if you add a new lang key through Polyglot? does it create a new key pair in the database? also, who does it get the new lang keys into the Cache lang-en.php?)

    • 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']);