/
waterstone
/
file_processor
Обзор
Документация
Войти
/
waterstone
/
file_processor
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/main.cpp
26 строк
593 B
Peter Sakhno
Initial commit
19 янв 2026, 11:08
19 янв 2026, 11:08
1ffa16c
Код
Авторство
О чём код?
#include "main_view.h" #include <QApplication> #include <QLocale> #include <QTranslator> int main (int argc, char *argv[]) { QApplication a (argc, argv); QTranslator translator; const QStringList uiLanguages = QLocale::system ().uiLanguages (); for (const QString &locale : uiLanguages) { const QString baseName = "FileProcessor_" + QLocale (locale).name (); if (translator.load (":/i18n/" + baseName)) { a.installTranslator (&translator); break; } } MainView w; w.show (); return a.exec (); }