Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.7.2
-
d4250d9e1d4ed23e0cf41e6ce35d9dda6323455c
Description
The problem has been reported to be solved in the bug report:
http://bugreports.qt.nokia.com/browse/QTBUG-13917
However, currently, Simplified Chinese language variant "zh_CN" is not supported by default. The solution provided in the http://bugreports.qt.nokia.com/browse/QTBUG-13917 works if a developer set the following:
// For other lanague, the following is not needed.
SYMBIAN_SUPPORTED_LANGUAGES += zh_CN
SYMBIAN_LANG.zh_CN = 31
CONFIG += localize_deployment
For Chinese phone in People's Republic of China, the locale is returned with "zh_CN".
QString locale = QLocale::system().name();
qDebug() << "Locale: " << locale;
QTranslator translator;
translator.load(QString("helloworld_") + locale);
I think it is necessary to verify it for Traditional Chinese both in Hong Kong and Taiwan. The both have different lanuage code "29" and "30"