|
18 | 18 | #include <stdio.h> |
19 | 19 | #include <stdlib.h> |
20 | 20 | #include <thread> |
21 | | -#include <QTranslator> |
22 | 21 |
|
23 | 22 | #ifdef _MACOSX_X86_X64 |
24 | 23 | #include "macUSPCIOAccess.h" |
@@ -346,36 +345,6 @@ int main(int argc, char* argv[]) |
346 | 345 | QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); |
347 | 346 | QApplication a(argc, argv); |
348 | 347 |
|
349 | | - /*---------------------------------------------------------*\ |
350 | | - | App translation | |
351 | | - | To add a new language: | |
352 | | - | Create a file under qt/i18n/OpenRGB_<locale>.ts | |
353 | | - | Add it to TRANSLATIONS in OpenRGB.pro | |
354 | | - | Edit this file (manually or with | |
355 | | - | linguist qt/i18n/OpenRGB_en.ts qt/i18n/OpenRGB_XX.ts | |
356 | | - \*---------------------------------------------------------*/ |
357 | | - QTranslator translator; |
358 | | - |
359 | | - QLocale locale = QLocale(QLocale::system()); |
360 | | - QLocale::setDefault(locale); |
361 | | - |
362 | | - // For local tests without changing the PC locale, override this value. |
363 | | - //locale = QLocale(QLocale::French, QLocale::France); |
364 | | - |
365 | | - a.removeTranslator(&translator); |
366 | | - |
367 | | - QString path = ":/i18n/"; |
368 | | - |
369 | | - if(translator.load(path + QString("OpenRGB_%1.qm").arg(locale.name()))) |
370 | | - { |
371 | | - a.installTranslator(&translator); |
372 | | - printf("Current Language changed to %s\n", locale.name().toStdString().c_str()); |
373 | | - } |
374 | | - else |
375 | | - { |
376 | | - printf("Failed to load translation file for default locale '%s'\n", locale.name().toStdString().c_str()); |
377 | | - } |
378 | | - |
379 | 348 | /*---------------------------------------------------------*\ |
380 | 349 | | Main UI widget | |
381 | 350 | \*---------------------------------------------------------*/ |
|
0 commit comments