语言

Menu
Sites
Language
Problems with localization

Hi all.

Today I have problem with localization. I read the article (https://developer.tizen.org/ru/documentation/articles/localization) and tried to make Web Pages Localization. I added index.html into localization wizard and chose french language. Then I chose french language and region on the device. Then I changed locales/fr/index.html, launched it on the device, but it loaded "main" index.html, which wasn't localized. 

For example, I tried to chose app name in "config.xml->localization->name". Added French and insert new name (e.g. "French"). Then I launched app again and saw, that the name of app is "French". 

So what am I doing wrong?

Thanks. 

响应

1 回复
Raghavendra Reddy Shiva

The same steps worked for me and was able to see the index.html page loaded from the "locales/fr" folder. Seems you are somewhere going wrong. You mentioned doing this, but still if done the wrong way, from the same article, after step 3, don't choose "finish" instead go with option "next" and select the file and language and then say "finish". Now you should be seeing the index file being created under folder "locales/fr/index.html". Please clean and re-built the project if not done, before deploying it onto device. After changing the langauge settings (both Display Language and Region), you should be seeing the index file loaded from the "locales/fr" folder.

And regarding the App name, it's the expected behaviour. In the config file, you have a default name tag (as below), that should show up for all the other languages which are not defined. Like in the below case, except for English and German language, the app name will be "DefaultAppName".

<name>DefaultAppName</name>
<name xml:lang="en">English Name</name>
<name xml:lang="de">German Name</name>

Hope that helps !!