diff --git a/Base/QTCore/qSlicerCoreApplication.cxx b/Base/QTCore/qSlicerCoreApplication.cxx index b729f8d19ea..fc82a052402 100644 --- a/Base/QTCore/qSlicerCoreApplication.cxx +++ b/Base/QTCore/qSlicerCoreApplication.cxx @@ -1592,7 +1592,6 @@ void qSlicerCoreApplication::loadTranslations(const QString& dir) QString localeFilter = QString( QString("*") + app->settings()->value("language").toString()); - localeFilter.resize(3); localeFilter += QString(".qm"); QDir directory(dir); diff --git a/CMakeLists.txt b/CMakeLists.txt index 1013b34313e..c5650312260 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -408,6 +408,8 @@ include(SlicerFunctionAddPythonQtResources) if(Slicer_BUILD_I18N_SUPPORT) set(Slicer_LANGUAGES "fr" + "zh_tw" + "zh_cn" ) set_property(GLOBAL PROPERTY Slicer_LANGUAGES ${Slicer_LANGUAGES}) endif()