11-28-2011 12:47 PM
I'm building a WebWorks version of an Android app that's localised into 39 languages.
At the moment all the localisations are in an xml file per language of key-value pairs.
Each language file has about 400 lines (roughly 40k per file).
Users can change the language used in app.
What options are there in WebWorks to solve this kind of situation?
I'd be more than happy to convert the resource files into any other kind of format to make working with it a better experience on the platform.
11-28-2011 01:41 PM
Off the top of my head you could change the files to JSON. If you want to use key/value pairs a great way to do this is HTML5 LocalStorage. If you want to backport the app to 5.0 and maintain the key/value pair interface you could look into lawnchair.
11-29-2011 04:25 AM - edited 11-29-2011 04:33 AM
I should have specified I'm writing an app for BB mobile rather than PlayBook.
HTML 5 LocalStorage isn't an option for mobile by the looks of it.
Does BB Webworks have no built in solution for this?
11-29-2011 04:54 AM
Blackberry HTML 5 Database : https://bdsc.webapps.blackberry.com/html5/apis/Dat
Demo on how to use : http://www.html5rocks.com/en/tutorials/webdatabase
11-29-2011 05:11 AM
This would work if there were a way to package a prepopulated database that ships with the app.
Otherwise I'd need to create scripts that insert ~1.5 mb of data on the first app run.
Is there a way to do this?