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
bbj
Contributor
bbj
Posts: 43
Registered: ‎02-22-2012
My Device: Developer
My Carrier: Various
Accepted Solution

How do you add 'language' text to a ts file that Momentics handles properly ??

Ok we give up....

 

How do you add any character outside of ascii 7-bit range into a ts file and cause the *****w?! IDE to actually compile it sucessfully.

 

E.g.  an Italian ts file with any accented chars as below falls over.

 

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="it_IT">
<context>
    <name></name>
  <message>
      <source>accented_char</source>
      <translation>è</translation>
  </message>
 
</context>
</TS>


Parse error at C:/ndk-10.0.4-workspace/XXX/translations/XXX_it.ts:1:38: Encountered incorrectly encoded content.
Unexpected characters '

 

Similarlty in a plain english ts file the copyright symbol causes the same problem


<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0">
<context>
    <name></name>

  <message>
    <source>copyright_symbol</source>
    <translation>©</translation>
  </message>

</context>
</TS>


Please use plain text.
Administrator
MSohm
Posts: 14,241
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: How do you add 'language' text to a ts file that Momentics handles properly ??

Can you try this with version 10.0.6?  I wasn't able to reproduce this in the updated version.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
bbj
Contributor
bbj
Posts: 43
Registered: ‎02-22-2012
My Device: Developer
My Carrier: Various

Re: How do you add 'language' text to a ts file that Momentics handles properly ??

 

Appears to be fixed in 10.0.6 - as in at least momentics can now build the app with non ascii-7bit chars in ts files.

Please use plain text.