is any i18n localization plugin for Jquery Mobile? I searched a lot of time, but i18n translations plugins for Jquery not working correctly on JQM. For example in a href..many thanks.
Nobody knows?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have had the same problem, and I resolved the problem simply by using the Jquery Extend function.
Say you define your language resources as follows:
1) Create a resource file with the default localization, presumably defined in English. Let’s call it resources.default.js
2) Define your localized resources in independent files, let’s say Spanish. Call it resources.es.js
3) On your server logic, decide that you need to include only the default translations in case of English, or if you need any other language do an include.
4) Create your web page, and add scripts to handle your inclusion of the resources, per step 3.
This should work for you.
EDIT:
See it in action here: http://jsfiddle.net/agarcian/rrDv3/1/