Developer module - Polyglot - Language Keys not getting added

So I am trying to add text for my language using the "Developer module" > PolyGlot > "Add keys".

In the Developer module > Polyglot

  • Selects my language,
  • Category > Groups
  • Keys:
  • <string name="_bx_groups"><![CDATA[ഗ്രൂപ്പുകൾ]]></string>
  • <string name="_bx_groups_cmts"><![CDATA[ഗ്രൂപ്പുകളുടെ അഭിപ്രായങ്ങൾ]]></string>
  • Checks "Force replace if exists".

A popup is seen "2 Keys are added"

CLicked "Recompile all" button and also "Recompile" icon near the language too..

But when I go the polyglot module and groups, I do not see these keys. They still contain only English.

Cleared cache (just in case).. and still no change.

Are there any additional steps / settings required.. ?

  • 514
  • More
Replies (3)
    • Hello @highlightings !

      This action "CLicked "Recompile all" button and also "Recompile" icon near the language too.." is necessary when you want to return to the lang values from the default XML files. If you added smth via the Polyglot then it is added to the database and then to the inline language PHP file, but it doesn't add the new values for the XML files of the language modules. The recompilation will erase your new values and restore the original langauge strings set.

      • So there are many "Restore " buttons and there are few "Recompile" buttons. How are they different ? I was expecting "restore" to bring back the original keys from XML. And the restore button is actually doing this pretty good. But I didn't know the recompile also brings back the lang values from XML file.

        Now to the real issue - Even if I add keys without clicking any of these buttons, is it expected to see the changed keys in "Polyglot" ? I am not seeing any changes even after I select "Force replace if exists" in the "Add keys" form.

        So I manually update my Language module xml files and then click "restore" so it gets updated across site.

        • Yes, I've described the "Restore" function, sorry. The Recompile means that you rewrite the PHP lang file from the database, the current values which you have now in the Polyglot. It needs of the file has some troubles like not fully compiled due to lack of resources or exexcutin time exceeding.

          Login or Join to comment.