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

+5 -2
View File
@@ -1,3 +1,4 @@
#include <QCoreApplication>
#include "memberlistmodel.h"
#include "../transport/gui_bridge.h"
#include <QPainter>
@@ -47,9 +48,11 @@ QVariant MemberListModel::data(const QModelIndex& index, int role) const {
return sub;
}
if (role == Qt::ToolTipRole)
return QString(it->online ? "online" : "offline") + " | 0x" +
return (it->online ? QCoreApplication::translate("ChatGui",
"online") : QCoreApplication::translate("ChatGui",
"offline")) + " | 0x" +
QString("%1").arg(it->nodeId, 16, 16, QChar('0')) +
((it->flags & CHAT_MEMBER_FLAG_RADIO) ? tr(" | Radio enabled") : QString());
((it->flags & CHAT_MEMBER_FLAG_RADIO) ? QCoreApplication::translate("ChatGui", " · Radio enabled") : QString());
if (role == Qt::UserRole + 2) return it->isSelf;
if (role == Qt::UserRole + 3) return it->flags;
if (role == Qt::UserRole + 4) return (bool)it->storage;