01-24-2011 10:57 AM
Folks,
I wanted to ask whether anyone has written a WebWorks application that displays content localized to the language of the current user?
If so, what approach did you take to solve this problem (custom extension, user-selection options screen, AJAX magic, etc)?
Reason for asking is I want to get feedback from the community about how much interest there is in this topic and whether there is a most popular / desirable solution. What are your opinions?
If anyone has written a JavaScript Extension for this already it would make an ideal contribution candidate for of the BlackBerry WebWorks Open Source project. If so, please contact me.
Cheers,
Adam
04-24-2012 05:20 AM
04-24-2012 04:22 PM - edited 04-24-2012 04:24 PM
I failed to find anything good enough for Sencha Touch 1, but we plan on using this for ST2 apps:
https://github.com/mitchellsimoens/Ux.locale.Manag
The strings are neatly organized in JSON files.
The plan is to detect the user's locale via a Webworks API and to offer a language selector in the preference panel as well.
04-25-2012 09:07 AM
Hi lagunex,
Thanks for your feedback! Appreciate you sharing your solution.
As a tip, there is now a "Locale" extension published for developers to use in our Github Community APIs repo. You should be able to use this to get the default language set by your users.
Smartphone extension:
https://github.com/blackberry/WebWorks-Community-A
Tablet OS extension:
https://github.com/blackberry/WebWorks-Community-A
Best,
Adam