QbelcorT
29th March 2009, 05:29
Hello,
I am trying to translate English to Korean, I've loaded a .qm file into my application and it loaded correctly. I can see my english text, but the Korean text is not displayed. The text is just blank. If I translate an english phrase in english the new phrase will appear but korean characters will not. The list of available codecs shows "EUC-KR". The locale is set to ko_KR. I tried a few things with setting the codec but didn't make a difference.
I am using QtEmbedded4.4.1
Is there something I am missing?
Thanks.
QLocale::setDefault(QLocale(QLocale::Korean,QLocal e::RepublicOfKorea));
//QTextCodec *codec = QTextCodec::codecForName("EUC-KR");
//QTextCodec::setCodecForLocale(codec);
QTranslator qtTranslator;
qtTranslator.load("application_" + QLocale::system().name(),QLibraryInfo::location(QL ibraryInfo::TranslationsPath));
app.installTranslator(&qtTranslator);
qDebug() << QLocale::system().name() << QTextCodec::codecForLocale() << QTextCodec::availableCodecs();
I am trying to translate English to Korean, I've loaded a .qm file into my application and it loaded correctly. I can see my english text, but the Korean text is not displayed. The text is just blank. If I translate an english phrase in english the new phrase will appear but korean characters will not. The list of available codecs shows "EUC-KR". The locale is set to ko_KR. I tried a few things with setting the codec but didn't make a difference.
I am using QtEmbedded4.4.1
Is there something I am missing?
Thanks.
QLocale::setDefault(QLocale(QLocale::Korean,QLocal e::RepublicOfKorea));
//QTextCodec *codec = QTextCodec::codecForName("EUC-KR");
//QTextCodec::setCodecForLocale(codec);
QTranslator qtTranslator;
qtTranslator.load("application_" + QLocale::system().name(),QLibraryInfo::location(QL ibraryInfo::TranslationsPath));
app.installTranslator(&qtTranslator);
qDebug() << QLocale::system().name() << QTextCodec::codecForLocale() << QTextCodec::availableCodecs();