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

+3 -2
View File
@@ -1,3 +1,4 @@
#include <QCoreApplication>
#include "ptt_hotkey_manager.h"
#include "radio_audio_engine.h"
#include "../db/db_manager.h"
@@ -196,7 +197,7 @@ QString PttHotkeyManager::keyName(int key) const {
if (name) return QString::fromLatin1(name);
}
#endif
return QString("Key %1").arg(key);
return QCoreApplication::translate("ChatGui", "Key %1").arg(key);
}
QString PttHotkeyManager::describe(const PttKeyChord& chord) const {
@@ -204,7 +205,7 @@ QString PttHotkeyManager::describe(const PttKeyChord& chord) const {
std::sort(keys.begin(), keys.end());
QStringList names;
for (int key : keys) names << keyName(key);
return names.isEmpty() ? QStringLiteral("Не задано") : names.join(" + ");
return names.isEmpty() ? QCoreApplication::translate("ChatGui", "Not set") : names.join(" + ");
}
bool PttHotkeyManager::usesPortal() {