diff --git a/examples/demos/photoviewer/main.cpp b/examples/demos/photoviewer/main.cpp index 8546695599013a9b70b107bb148d4799cd4f5566..e9d82823060c30eb312993be000b087ace3d2b5d 100644 --- a/examples/demos/photoviewer/main.cpp +++ b/examples/demos/photoviewer/main.cpp @@ -58,7 +58,7 @@ int main(int argc, char *argv[]) QGuiApplication app(argc, argv); QTranslator qtTranslator; - qtTranslator.load("qml_" + QLocale::system().name(), ":/i18n/"); + qtTranslator.load(QLocale(), "qml", "_", ":/i18n/"); app.installTranslator(&qtTranslator); QQmlApplicationEngine engine;