Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
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?