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

+15 -12
View File
@@ -1,3 +1,4 @@
#include <QCoreApplication>
#include "channelsettingsdialog.h"
#include "../db/db_manager.h"
#include "../transport/gui_bridge.h"
@@ -16,7 +17,7 @@ ChannelSettingsDialog::ChannelSettingsDialog(const QString& channelId, DbManager
, m_channelId(channelId)
, m_db(db)
{
setWindowTitle(QStringLiteral("Channel Settings"));
setWindowTitle(QCoreApplication::translate("ChatGui", "Channel Settings"));
setMinimumWidth(340);
setModal(true);
@@ -24,7 +25,7 @@ ChannelSettingsDialog::ChannelSettingsDialog(const QString& channelId, DbManager
layout->setContentsMargins(20, 16, 20, 16);
layout->setSpacing(12);
auto* titleLabel = new QLabel(QStringLiteral("Settings for channel"), this);
auto* titleLabel = new QLabel(QCoreApplication::translate("ChatGui", "Settings for channel"), this);
titleLabel->setStyleSheet("font-weight: bold; font-size: 14px;");
layout->addWidget(titleLabel);
@@ -35,16 +36,18 @@ ChannelSettingsDialog::ChannelSettingsDialog(const QString& channelId, DbManager
layout->addSpacing(8);
m_autoPlayVoice = new QCheckBox(QStringLiteral("Auto-play voice messages on receive"), this);
m_autoPlayVoice->setToolTip(QStringLiteral("Voice messages will play automatically when received. Multiple messages queue up and play sequentially without interrupting current playback."));
m_autoPlayVoice = new QCheckBox(QCoreApplication::translate("ChatGui", "Auto-play voice messages on receive"), this);
m_autoPlayVoice->setToolTip(QCoreApplication::translate("ChatGui",
"Voice messages will play automatically when received. Multiple messages queue up and play "
"sequentially without interrupting current playback."));
layout->addWidget(m_autoPlayVoice);
m_soundOnMessage = new QCheckBox(QStringLiteral("Play sound on incoming message"), this);
m_soundOnMessage->setToolTip(QStringLiteral("Play a notification sound when a message arrives in this channel."));
m_soundOnMessage = new QCheckBox(QCoreApplication::translate("ChatGui", "Play sound on incoming message"), this);
m_soundOnMessage->setToolTip(QCoreApplication::translate("ChatGui", "Play a notification sound when a message arrives in this channel."));
layout->addWidget(m_soundOnMessage);
m_pttMode = new QCheckBox(QStringLiteral("Push-To-Talk (PTT) mode"), this);
m_pttMode->setToolTip(QStringLiteral("Record voice messages with push-to-talk. (Coming soon)"));
m_pttMode = new QCheckBox(QCoreApplication::translate("ChatGui", "Push-To-Talk (PTT) mode"), this);
m_pttMode->setToolTip(QCoreApplication::translate("ChatGui", "Record voice messages with push-to-talk. (Coming soon)"));
m_pttMode->setEnabled(false);
layout->addWidget(m_pttMode);
@@ -54,8 +57,8 @@ ChannelSettingsDialog::ChannelSettingsDialog(const QString& channelId, DbManager
btnLayout->setSpacing(8);
btnLayout->addStretch();
auto* cancelBtn = new QPushButton(QStringLiteral("Cancel"), this);
cancelBtn->setFixedWidth(90);
auto* cancelBtn = new QPushButton(QCoreApplication::translate("ChatGui", "Cancel"), this);
cancelBtn->setMinimumWidth(90);
cancelBtn->setStyleSheet(
"QPushButton { border: 1px solid palette(mid); border-radius: 4px;"
" padding: 6px 16px; font-size: 13px; background: palette(button); }"
@@ -63,8 +66,8 @@ ChannelSettingsDialog::ChannelSettingsDialog(const QString& channelId, DbManager
connect(cancelBtn, &QPushButton::clicked, this, &QDialog::reject);
btnLayout->addWidget(cancelBtn);
auto* saveBtn = new QPushButton(QStringLiteral("Save"), this);
saveBtn->setFixedWidth(90);
auto* saveBtn = new QPushButton(QCoreApplication::translate("ChatGui", "Save"), this);
saveBtn->setMinimumWidth(90);
saveBtn->setDefault(true);
saveBtn->setStyleSheet(
"QPushButton { border: none; border-radius: 4px;"