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.
04-25-2013 09:40 AM - edited 04-25-2013 09:51 AM
I am really interested to hear your guys opinion on the following.
What is the best way to handle your text in BB10 apps if you are building a whitelable app?
I built an app that uses QML for the UI and handles all the business logic and data handling through C++.
At the moment when I am setting my texts in QML I am using qsTr("something").
So my question being. If I want to make a whitelable app and I wanna be able to quickly change the Text.
Is there any sexy solution in BB10 something like Android does (String.xml)or something similar that early BB dev did? or a key value pair solution where I just grab the key I am after I am think of something like the following
so that way I can edit my text in one doc instead of screening through all the UI elements I built.
Any Ideas? Or could I just store them in a JS file or in a raw txt or is there any more elegant solution?
I am keen to hear your guys thoughts.
04-26-2013 04:09 AM
Have you looked into Cascades localiztion APIs? You can essentially store all your text in translation files and load them on the fly. I don't know if this will exactly address your use case but definitely worth a look:
04-26-2013 10:04 AM
Cheers for the tip. It should do this already as I did set up a project initially like this. However .ts does not get populated with content on build. Any ideas?
I've tried force it with lupdate command. I looks generates all the locals, but something automaticlly get rid of after a 2 of sec. I dont even have the time to save it. hmmmm very strange. Any idea?