Problem when translating UI into other languages
Posted: Tue Jul 09, 2024 6:49 pm
Hello,
We're using Author Web version 26.1.0.1.
We would like to translate the user interfaces into other languages (IT / ES) than those provided by default.
We've added the following to the translation.xml file:
This file is transformed into 0translation.js using gulpfile. Example:
When we modify the lang parameter in the URL, for example by adding "lang=it", we get a warning in the development tools console:
and translations are not taken into account.
Furthermore, we have seen in the console:
are equal to:
What did we miss?
Thanks your help,
Johann
We're using Author Web version 26.1.0.1.
We would like to translate the user interfaces into other languages (IT / ES) than those provided by default.
We've added the following to the translation.xml file:
Code: Select all
<languageList>
<language description="English" lang="en_US"/>
<language description="German" lang="de_DE"/>
<language description="Italian" lang="it_IT"/>
<language description="Spanish" lang="es_ES"/>
<language description="French" lang="fr_FR"/>
<language description="Japanese" lang="ja_JP"/>
<language description="Dutch" lang="nl_NL"/>
</languageList>
Code: Select all
(function(){var msgs={YES_:{de_DE : "Ja",it_IT : "Sì",es_ES : "Sí",fr_FR : "Oui",en_US : "Yes"}};sync.Translation.addTranslations(msgs);})();
Code: Select all
invalid language format it_IT
Furthermore, we have seen in the console:
Code: Select all
sync.Translation.supportedLanguages = window.supportedLanguages ;
Code: Select all
{code: 'en_US', description: 'English'}
{code: 'de_DE', description: 'Deutsch'}
{code: 'fr_FR', description: 'Français'}
{code: 'ja_JP', description: '日本語'}
{code: 'nl_NL', description: 'Nederlands'}
{code: 'zh_CN', description: '中文'}
Thanks your help,
Johann