diff --git a/dust3d.pro b/dust3d.pro index bff49984..367703c2 100644 --- a/dust3d.pro +++ b/dust3d.pro @@ -4,7 +4,7 @@ DEFINES += NDEBUG DEFINES += QT_MESSAGELOGCONTEXT RESOURCES += resources.qrc -LANGUAGES = zh-CN +LANGUAGES = zh_CN ############## Generate .qm from .ts ####################### diff --git a/languages/dust3d_zh-CN.ts b/languages/dust3d_zh_CN.ts similarity index 100% rename from languages/dust3d_zh-CN.ts rename to languages/dust3d_zh_CN.ts diff --git a/resources.qrc b/resources.qrc index 8515c588..94b59616 100644 --- a/resources.qrc +++ b/resources.qrc @@ -25,7 +25,7 @@ shaders/default.core.frag shaders/pbr-qt.frag shaders/pbr-joey.frag - languages/dust3d_zh-CN.qm + languages/dust3d_zh_CN.qm ACKNOWLEDGEMENTS.html AUTHORS CONTRIBUTORS diff --git a/src/main.cpp b/src/main.cpp index d7350e59..5db42702 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -59,6 +59,8 @@ int main(int argc, char ** argv) DocumentWindow::createDocumentWindow(); + qDebug() << "Language:" << QLocale().name(); + bool remoteIoEnabled = false; for (int i = 1; i < argc; ++i) { if ('-' == argv[i][0] && 0 == strcmp(argv[i], "-remoteio")) {