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
Developer
Posts: 164
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.

but,

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 )

then 

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

 

thanks.

BlackBerry Cascades / WebWorks developer, Vendor name: anpho
Highlighted
Developer
Posts: 16,984
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.
like
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