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
Highlighted
Developer
Posts: 85
Registered: ‎06-22-2013
My Device: N/A
My Carrier: N/A

Problem at translation, need help.

i have translated english to arabic

 

 

?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0">
<context>
<name>main</name>
<message>
<source>Hello</source>
<translation type="unfinished">مرحبا</translation>
</message>
</context>
</TS>

 

it worked fine

 

but when translation from arabic to english gives me a problem

 

the QMl file contains

Button{

text :"مرحبا"

}

 

after building the project the ts file contains that.

 

?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0">
<context>
<name>main</name>
<message>
<source>مرحبا</source>
<translation type="unfinished">Hello</translation>
</message>
</context>
</TS>

 

 

 

Developer
Posts: 828
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Rogers

Re: Problem at translation, need help.

[ Edited ]

You should be able to fix this by setting the encoding of your project to UTF-8

 

this can be done by click Project in the file menu of momentics then selecting properties.  on the first page it opens, the Resource tab, there is a box that says Text file encoding, set the radio button to Other: then choose UTF-8.

 

apply the changes, clean & re-build your project and everything should be in the clear

Developer
Posts: 85
Registered: ‎06-22-2013
My Device: N/A
My Carrier: N/A

Re: Problem at translation, need help.

i did change the encoding from project properties .

it did not work Smiley Sad