Note that there are some explanatory texts on larger screens.

plurals
  1. POBlackBerry - language support for Chinese
    text
    copied!<p>I have localised my app by adding the correct resource files for various European languages / dialects. </p> <p>I have the required folder in my project: ./res/com/demo/localization</p> <p>It contains the required files e.g. Demo.rrh, Demo.rrc, Demo_de.rrc etc.</p> <p>I want to add support for 2 Chinese dialects, and I have the translations in an Excel file. On iPhone, they are referred to by the codes <strong>zh_TW</strong> &amp; <strong>zh_CM</strong>. Following the pattern with German, I created 2 extra files called Demo_zh_TW.rrc &amp; Demo_zh_CN.rrc.</p> <p>I opened file Demo_zh_CN.rrc using Eclipse's text editor, and pasted in line of the Chinese translation using the normal resource file format:</p> <ul> <li><code>START_LOCATION#0="开始位置";</code></li> </ul> <p>When I tried to save the file, I got Eclipse's error about the Cp1252 character encoding:</p> <blockquote> <p>Save could not be completed.</p> <p>Reason: Some characters cannot be mapped using "Cp1252" character encoding. Either change the encoding or remove the characters which are not supported by the "Cp1252" character encoding.</p> </blockquote> <p>It seems the Eclipse editor will accept the Chinese characters, but the resource tool expects that these characters must be saved in the resource file as Java Unicode /u encoding.</p> <hr> <p>How do I add language support for these 2 regions without manually copy n pasting in each string? </p> <p>Is there maybe a tool that I can use to Java Unicode /u encode the strings from Excel so they can be saved in Code page 1252 Latin chars only?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload