Add new language in Oxygen framework for localization
Posted: Fri Jan 12, 2018 2:16 pm
Hello,
We use oxygen-18.1.0.0.jar, and we need to add the Portuguese, Spanish and Chinese language to our "translation.xml" file.
I have read this page http://www.oxygenxml.com/doc/versions/1 ... works.html and I have updated the "translation.xml" file this way :
However, when I select one of this 3 new languages, I only get english value.
So I have tested the value of.
The value is correct for English and French but stay in English for Portuguese, Spanish and Chinese.
Can you explain me how to add this 3 new languages, please ?
Thanks.
Regards,
Isabelle
We use oxygen-18.1.0.0.jar, and we need to add the Portuguese, Spanish and Chinese language to our "translation.xml" file.
I have read this page http://www.oxygenxml.com/doc/versions/1 ... works.html and I have updated the "translation.xml" file this way :
Code: Select all
<languageList>
<language description="English" lang="en_US"/>
<language description="French" lang="fr_FR"/>
<language description="Portuguese" lang="pt_BR"/>
<language description="Spanish" lang="es_AR"/>
<language description="Chinese" lang="zh_CN"/>
</languageList>
<key value="font_style">
<val lang="en_US">Font style</val>
<val lang="fr_FR">Style</val>
<val lang="pt_BR">Test Portuguese</val>
<val lang="es_AR">Test Spanish</val>
<val lang="zh_CN">Test Chinese</val>
</key>
However, when I select one of this 3 new languages, I only get english value.
So I have tested the value of
Code: Select all
ro.sync.exml.workspace.api.PluginWorkspaceProvider.getPluginWorkspace().getUserInterfaceLanguage()
The value is correct for English and French but stay in English for Portuguese, Spanish and Chinese.
Can you explain me how to add this 3 new languages, please ?
Thanks.
Regards,
Isabelle