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

Posts: 162
Registered: ‎11-27-2012
My Device: Z10 LE,Dev Alpha C
My Carrier: China Mobile

[i18n] how to add customed i18n strings to ts file?

I have an array of strings, which I want them to be translated by qstr.


when I add a new context in the ts file, it is automaticlly be mark as something unused ( i forgot that word, sorry for my english )


how do I use qstr() at runtime to translate some string into another locale ?



BlackBerry Cascades / WebWorks developer, Vendor name: anpho
Posts: 16,894
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: [i18n] how to add customed i18n strings to ts file?

i think you usually add the context in the source.
qsTr("About", "context to about") + Retranslate.onLanguageChanged
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter