This commit is contained in:
2025-11-01 13:19:52 +03:00
parent 0d1d851e3f
commit e9363c388b
22 changed files with 801 additions and 484 deletions

View File

@@ -52,9 +52,6 @@ MainWindow::MainWindow(QWidget *parent) :
connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
this, SLOT(slot_Activated(QSystemTrayIcon::ActivationReason)));
slot_Tray_ShowMessage(tr("Starting the server..."));
serverLMSWidget = new ServerLMSWidget(this);
ui->verticalLayout_Main->addWidget(serverLMSWidget);
@@ -62,14 +59,17 @@ MainWindow::MainWindow(QWidget *parent) :
connect(serverLMSWidget, &ServerLMSWidget::signal_LanguageChanged, this, &MainWindow::slot_LanguageChanged);
connect(serverLMSWidget, &ServerLMSWidget::signal_Tray_ShowMessage, this, &MainWindow::slot_Tray_ShowMessage);
serverLMSWidget->start();
connect(serverLMSWidget, &ServerLMSWidget::signal_Menu_ShowWindow, this, &MainWindow::slot_Menu_ShowWindow);
connect(serverLMSWidget, &ServerLMSWidget::signal_Menu_HideWindow, this, &MainWindow::slot_Menu_HideWindow);
qtLanguageTranslator.load(QString("translations/TrayServerLMS_") + serverLMSWidget->getLanguage(), ".");
qApp->installTranslator(&qtLanguageTranslator);
errorCheck();
slot_Tray_ShowMessage(tr("Starting the server..."));
slot_Menu_HideWindow();
serverLMSWidget->start();
errorCheck();
}
/* Метод, который обрабатывает событие закрытия окна приложения

View File

@@ -53,7 +53,6 @@ public slots:
//Слот вывода сообщения из трея
void slot_Tray_ShowMessage(QString textMsg, QSystemTrayIcon::MessageIcon iconMsg = QSystemTrayIcon::Information);
signals:
//сигнал об изменении языка интерфейса
void signal_LanguageChanged(QString language);

View File

@@ -9,47 +9,58 @@
<translation>Сервер Системы управления обучением (СУО)</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="63"/>
<source>Language</source>
<translation>Язык</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="39"/>
<location filename="../mainwindow.cpp" line="184"/>
<location filename="../mainwindow.cpp" line="25"/>
<location filename="../mainwindow.cpp" line="146"/>
<location filename="../mainwindow.cpp" line="204"/>
<source>Server LMS</source>
<translation>Сервер СУО</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="43"/>
<location filename="../mainwindow.cpp" line="29"/>
<location filename="../mainwindow.cpp" line="147"/>
<source>Expand window</source>
<translation>Развернуть окно</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="44"/>
<location filename="../mainwindow.cpp" line="30"/>
<location filename="../mainwindow.cpp" line="148"/>
<source>Minimize window</source>
<translation>Свернуть окно</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="45"/>
<location filename="../mainwindow.cpp" line="31"/>
<location filename="../mainwindow.cpp" line="149"/>
<source>Exit</source>
<translation>Выход</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="155"/>
<location filename="../mainwindow.cpp" line="55"/>
<source>Starting the server...</source>
<translation>Запуск сервера...</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="161"/>
<source>Error!</source>
<translation>Ошибка!</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="163"/>
<source>No Client files found!</source>
<translation>Файлы Клиента не найдены!</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="156"/>
<location filename="../mainwindow.cpp" line="164"/>
<source>* check Application for the presence of a folder with a build
* check SharedData for a folder with the base version and the name base</source>
<translation>* проверьте Application на наличие папки со сборкой
* проверьте SharedData на наличие папки с базовой версией и именем base</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="185"/>
<source>The application is minimized to the tray. To maximize the application window, click the application icon in the tray.</source>
<translation>Приложение свернуто в трей. Чтобы развернуть окно приложения, щелкните по иконке приложения в трее.</translation>
<location filename="../mainwindow.cpp" line="191"/>
<source>The application is minimized to the tray.
To maximize the application window, click the application icon in the tray.</source>
<translation>Приложение свёрнуто в область уведомлений.
Чтобы развернуть окно приложения, нажмите на значок приложения в области уведомлений.</translation>
</message>
</context>
</TS>