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 -4
View File
@@ -1,3 +1,4 @@
#include <QCoreApplication>
#include "imageviewer_window.h"
#include "../../lib/debug_config.h"
#include <QPainter>
@@ -34,14 +35,14 @@ static QPointF wheelPos(const QWheelEvent* e) {
ImageViewerWindow::ImageViewerWindow(QWidget *parent)
: QWidget(parent)
{
setWindowTitle(QStringLiteral("Фото"));
setWindowTitle(QCoreApplication::translate("ChatGui", "Photo"));
setAttribute(Qt::WA_DeleteOnClose, false);
setMinimumSize(320, 240);
resize(800, 600);
setMouseTracking(true);
m_closeBtn = new QPushButton(QStringLiteral("✕"), this);
m_closeBtn->setToolTip(QStringLiteral("Закрыть"));
m_closeBtn->setToolTip(QCoreApplication::translate("ChatGui", "Close"));
m_closeBtn->setCursor(Qt::ArrowCursor);
m_closeBtn->setStyleSheet(
"QPushButton { background: rgba(0,0,0,0.5); color: white; border: none; "
@@ -56,7 +57,7 @@ ImageViewerWindow::ImageViewerWindow(QWidget *parent)
m_closeFade = new QPropertyAnimation(m_closeEffect, "opacity", this);
m_closeFade->setEasingCurve(QEasingCurve::InOutQuad);
m_hintLabel = new QLabel(QStringLiteral("Ctrl+колесо — зум"), this);
m_hintLabel = new QLabel(QCoreApplication::translate("ChatGui", "Ctrl+wheel — zoom"), this);
m_hintLabel->setAlignment(Qt::AlignCenter);
m_hintLabel->setAttribute(Qt::WA_TransparentForMouseEvents);
m_hintLabel->setStyleSheet(
@@ -126,7 +127,7 @@ void ImageViewerWindow::paintEvent(QPaintEvent*) {
if (m_image.isNull()) {
p.setPen(QColor(150, 150, 150));
p.drawText(rect(), Qt::AlignCenter, QStringLiteral("Не удалось загрузить фото"));
p.drawText(rect(), Qt::AlignCenter, QCoreApplication::translate("ChatGui", "Failed to load photo"));
return;
}