Add English and Russian ChatGUI interface translations
This commit is contained in:
1 parent
972c6b7f0a
commit
27d93ecaf9
50 files changed
+4978
-491
No files matched your search
@@ -1,3 +1,4 @@
|
||||
#include <QCoreApplication>
|
||||
// statuspage.cpp — Status page (NTP + connections) in settings
|
||||
#include "statuspage.h"
|
||||
#include "../transport/utun_node.h"
|
||||
@@ -50,7 +51,7 @@ StatusPage::StatusPage(UtunNode* node, QWidget* parent)
|
||||
layout->addWidget(m_clockFrame);
|
||||
|
||||
/* ── System Status section ── */
|
||||
auto* title = new QLabel("System Status", this);
|
||||
auto* title = new QLabel(QCoreApplication::translate("ChatGui", "System Status"), this);
|
||||
title->setStyleSheet("font-weight: bold; font-size: 13px;");
|
||||
layout->addWidget(title);
|
||||
|
||||
@@ -60,13 +61,13 @@ StatusPage::StatusPage(UtunNode* node, QWidget* parent)
|
||||
m_textEdit->setStyleSheet(
|
||||
"QPlainTextEdit { border: 1px solid palette(mid); border-radius: 4px;"
|
||||
" padding: 8px; background: palette(base); }");
|
||||
m_textEdit->setPlaceholderText("Click Refresh to load status");
|
||||
m_textEdit->setPlaceholderText(QCoreApplication::translate("ChatGui", "Click Refresh to load status"));
|
||||
layout->addWidget(m_textEdit, 1);
|
||||
|
||||
auto* btnLayout = new QHBoxLayout();
|
||||
btnLayout->addStretch();
|
||||
m_refreshBtn = new QPushButton("Refresh", this);
|
||||
m_refreshBtn->setFixedWidth(90);
|
||||
m_refreshBtn = new QPushButton(QCoreApplication::translate("ChatGui", "Refresh"), this);
|
||||
m_refreshBtn->setMinimumWidth(90);
|
||||
m_refreshBtn->setStyleSheet(
|
||||
"QPushButton { border: 1px solid palette(mid); border-radius: 4px;"
|
||||
" padding: 6px 16px; font-size: 13px; background: palette(button); }"
|
||||
@@ -104,7 +105,7 @@ void StatusPage::updateClock() {
|
||||
if (synced)
|
||||
m_clockLabel->setText(QString("%1 [NTP ✓]").arg(t));
|
||||
else
|
||||
m_clockLabel->setText(QString("%1 [LOCAL]").arg(t));
|
||||
m_clockLabel->setText(QCoreApplication::translate("ChatGui", "%1 [LOCAL]").arg(t));
|
||||
|
||||
int msToNext = 1000 - (corrected.time().msec());
|
||||
m_clockTimer->start(msToNext);
|
||||
@@ -112,7 +113,7 @@ void StatusPage::updateClock() {
|
||||
|
||||
void StatusPage::refreshStatus() {
|
||||
updateClock();
|
||||
m_textEdit->setPlainText("Loading...");
|
||||
m_textEdit->setPlainText(QCoreApplication::translate("ChatGui", "Loading..."));
|
||||
gui_bridge_post_uasync_fn(chat_core_collect_status_trampoline, gui_bridge_get_inst());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user