Languages

Menu
Sites
Language
about Localizing Widgets

I have checked  https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.web.appprogramming%2FPackaging+a+Widget.html.

And  a new locales folder is created containing separate sub-folders for each locale。they are locales/en|ko|zh|zh-CN...

I modifed a index.html in folder "locales/zh" and made some letters in chinese.After then,I ran my app in my real device which has been changed "Language and region" to chinese configuration.But the index.html running  was not the file which in  my expect folder "locales/zh" but the default file in the root path of app.

I was confused.It can't choose the right file according to "Language and region"  in dynamic,is it ?

I can't fully understand the meaning of "Localizing Widgets". what's the meaning of " The sub-folders contain a copy of the selected files. Use that copy to create a localized version of the file" in help. I suppose it means according to the different region to build the different version of app?It can't build just one for all regions by which one  the app will choose the right file by real circumstance.If my think is right,how to build a version for a specified region.For example,I want to build a app for chinese,what should i do ?
Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

14 Replies
Marco Buettner
Do you add the new language on "Localization Wizard"?

Who knows how to disable app restart when localization is changed?

No matter whether the methods are used:

- tizen.systeminfo.getPropertyValue("LOCALE", ---);

- tizen.systeminfo.addPropertyValueChangeListener("LOCALE", ---);

When I change the language on my phone, the language on my Gear S3 is changed as well and it causes the issue that restarts my watchfaces\apps (Javascript).

Raghavendra Reddy Shiva
Thanks for your question, we are looking into it and will get back.
Lakshmi Grandhi
Did you chose localization from config file?? I tried choosing localization from config file, i added Zh, then i changed chinese and region to some name( don't know what exactly it is), then restarted emulator, after than deployed the widget to emualtor, it worked properly it has picked index.html page inside locales/ZH folder. Kindly let me know if you are still facing issue Thanks Lakshmi
wanjin ma
Hi Lakshmi,what did you do about config.xml?I don't know how to config it.
Lakshmi Grandhi
Select config file in ecllipse IDE, there will one localization tab down the page, there choose the locale you want to add, but i guess it is same as selection project menu. Did you restarted the emulator after changing the language and region??
Raghavendra Reddy Shiva
Just making things more clearer. 1) Use the Tizen localization wizard, which creates the Locales folder with the required language for the selected files. 2) Now build the entire project (root project). 3) On device under setting, change the "language and region" for the respective language you want the app to run for (If you have created locales for Chineese, then choose the language for the same ). 4) Reboot the device 5) Run your application on the device and now it should be picking up the index.html file from "locales/" folder. Let us know, if you have still have issues following the above steps.
wanjin ma
It works in emulator ,thanks for you help.But how can I test it in Tizen Web Simulator?
Marco Buettner
The simulator is just a web render and not a real test environment! For the simulator you have do change your system language and chrome browser language.
Varsamis
Hi, I've got a few related questions. The app does apply the locale changes after starting it over (having made the language change). Is it possible to achieve the same result while the app is running? Also, what about the languages that are not included in the Localization Wizard? Are these on the list for the next update?
wanjin ma
There is no possible to make a change in dynmaic . If you language doesn't exist in the Localization Wizard,it will use the default language. You can try it in your device. I just test it in version 2.0 ,There are many new features in 2.1 ,you need check it out by yourself.
wanjin ma
aaaaaaaaaaaaaaaaaaaaa
Varsamis
wanjin, I'm not quite sure you got me there. I asked about adding new languages in versions to come; I already now the available options (just 7 languages). So, the same questions remain for anyone who could help me.
wanjin ma
I have no idea about it.You should ask the offical ........