Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Trusted Contributor
AllSystemGo
Posts: 140
Registered: ‎11-23-2010
My Device: Torch 9800
Accepted Solution

Multilangual software

Hello Everyone,

 

   This post actually contain 2 questions.

 

1- How can you create a software in different language? Is there a localstring file like in C# or something else. Cause right now I see that in my main.cpp i have a include QTranslator and a QLocale

 

2- Why is it that in my main.cpp, build using the template from the new projects I have a 

#include <bb/cascades/Application>
#include <bb/cascades/QmlDocument>

 

and if I remove that like I see in the different samples I get and error but in the sample all goes fine? Am I missing a include somewhere.

 

Thank you all for your help

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: Multilangual software

For your first question, Qt had locale support built-in to the framework, you get this for free in Cascades:

http://doc.qt.nokia.com/4.7-snapshot/internationalization.html

 

Second question, it depends on where you are referencing these classes. If you are referencing these within your main.cpp then they will need to be included.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Trusted Contributor
AllSystemGo
Posts: 140
Registered: ‎11-23-2010
My Device: Torch 9800

Re: Multilangual software

Thank you I'll look into it.

Please use plain text.