PDA

View Full Version : Qt translations for chinese appear as junk values



gfernandes
10th June 2014, 13:29
I had generated 3 translation files using lupdate: French,Chinese and Hindi. I used linguist to do the required translations and then Released these translations.

In my main.cpp I wrote


QApplication a(argc,argv);
QTranslator translator;
translator.load("PaintTest_fr.qm");
a.installTranslator(&translator);

The french translations work fine. But Hindi (PaintText_hi.qm) and Chinese (PaintText_zh.qm) translations appear as junk values.

System Information: Ubuntu 12.04

Qt version: 4.8.5

Am I doing something wrong? Is there any additional details to be specified for Asian languages? Any help is appreciated. Thank you

wysota
10th June 2014, 14:38
Do you have a proper font that can show these characters? Are you using a proper encoding in your code?