Add English and Russian ChatGUI interface translations

This commit is contained in:
evgeny committed 2026-10-05 16:55:43 +02:00
1 parent 972c6b7f0a
commit 27d93ecaf9
50 files changed
+4978 -491

No files matched your search

+13 -12
View File
@@ -1,3 +1,4 @@
#include <QCoreApplication>
#include "soundsettingspage.h"
#include "sound_manager.h"
#include "../db/db_manager.h"
@@ -22,12 +23,12 @@ SoundSettingsPage::SoundSettingsPage(DbManager* db, QWidget* parent)
layout->setContentsMargins(0, 12, 0, 0);
layout->setSpacing(14);
m_enabledCheck = new QCheckBox("Enable sounds", this);
m_enabledCheck = new QCheckBox(QCoreApplication::translate("ChatGui", "Enable sounds"), this);
m_enabledCheck->setStyleSheet("font-size: 13px;");
layout->addWidget(m_enabledCheck);
auto* volLayout = new QHBoxLayout();
auto* volLabel = new QLabel("Volume:", this);
auto* volLabel = new QLabel(QCoreApplication::translate("ChatGui", "Volume:"), this);
volLabel->setStyleSheet("font-size: 13px;");
volLayout->addWidget(volLabel);
@@ -51,25 +52,25 @@ SoundSettingsPage::SoundSettingsPage(DbManager* db, QWidget* parent)
sep->setStyleSheet("QFrame { color: palette(mid); }");
layout->addWidget(sep);
auto* header = new QLabel("Events", this);
auto* header = new QLabel(QCoreApplication::translate("ChatGui", "Events"), this);
header->setStyleSheet("font-size: 13px; font-weight: bold;");
layout->addWidget(header);
m_events[0] = {"msg_incoming", "Incoming message", nullptr, nullptr, nullptr};
m_events[1] = {"msg_outgoing", "Outgoing message", nullptr, nullptr, nullptr};
m_events[2] = {"connect", "Peer connected", nullptr, nullptr, nullptr};
m_events[3] = {"disconnect", "Peer disconnected", nullptr, nullptr, nullptr};
m_events[4] = {"call_incoming", "Incoming call", nullptr, nullptr, nullptr};
m_events[5] = {"call_connecting", "Call: connecting", nullptr, nullptr, nullptr};
m_events[6] = {"call_ringing", "Call: ringback", nullptr, nullptr, nullptr};
m_events[0] = {"msg_incoming", QT_TRANSLATE_NOOP("ChatGui", "Incoming message"), nullptr, nullptr, nullptr};
m_events[1] = {"msg_outgoing", QT_TRANSLATE_NOOP("ChatGui", "Outgoing message"), nullptr, nullptr, nullptr};
m_events[2] = {"connect", QT_TRANSLATE_NOOP("ChatGui", "Peer connected"), nullptr, nullptr, nullptr};
m_events[3] = {"disconnect", QT_TRANSLATE_NOOP("ChatGui", "Peer disconnected"), nullptr, nullptr, nullptr};
m_events[4] = {"call_incoming", QT_TRANSLATE_NOOP("ChatGui", "Incoming call"), nullptr, nullptr, nullptr};
m_events[5] = {"call_connecting", QT_TRANSLATE_NOOP("ChatGui", "Call: connecting"), nullptr, nullptr, nullptr};
m_events[6] = {"call_ringing", QT_TRANSLATE_NOOP("ChatGui", "Call: ringback"), nullptr, nullptr, nullptr};
for (int i = 0; i < 7; i++) {
auto& e = m_events[i];
auto* row = new QHBoxLayout();
row->setSpacing(8);
auto* lbl = new QLabel(e.label, this);
lbl->setFixedWidth(140);
auto* lbl = new QLabel(QCoreApplication::translate("ChatGui", e.label), this);
lbl->setMinimumWidth(140);
lbl->setStyleSheet("font-size: 13px;");
row->addWidget(lbl);