언어 설정

Menu
Sites
Language
Getting system language

Hey guys

Is it possible to get the language and region which set by user in settings (except "window.navigator.language")? 

 

Cheers

 

 

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

4 댓글
Lakshmi Grandhi
Hi oguzhancansever,, You can get the values using native api's https://developer.tizen.org/help/topic/org.tizen.native.appprogramming/html/tutorials/system_tutorial/system_tutorial.htm?resultof=%22%6c%61%6e%67%75%61%67%65%22%20%22%6c%61%6e%67%75%61%67%22%20 , there are no APIs supported for Web Application. But if you have locales for each language, the runtime of webapplication will take care of launching appropriate date based on the language selected in Settings. https://developer.tizen.org/help/topic/org.tizen.web.appprogramming/html/app_dev_process/localize_widget.htm?resultof=%22%6c%6f%63%61%6c%69%7a%61%74%69%6f%6e%22%20%22%6c%6f%63%61%6c%22%20
Locales are useful however if you implement for more than 20 languages, it might cause a high workload. Thanks
Lakshmi Grandhi
yes, but the code will be clear and readable way, if developer wants any language specific changes he can implement it without work around
The localization is too time-intensive and not convenient if you are rendering your content by means of rendering engine. I'm just getting the language with window.navigator.language at start and load my language (json) files.