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

+6 -5
View File
@@ -1,3 +1,4 @@
#include <QCoreApplication>
#include "videoplayer_window.h"
#include "videoplayer_engine.h"
#include "../../lib/debug_config.h"
@@ -76,7 +77,7 @@ public:
VideoPlayerWindow::VideoPlayerWindow(QWidget* parent)
: QWidget(parent, Qt::Window | Qt::FramelessWindowHint)
{
setWindowTitle(QStringLiteral("Video"));
setWindowTitle(QCoreApplication::translate("ChatGui", "Video"));
setFocusPolicy(Qt::StrongFocus);
setMouseTracking(true);
@@ -99,7 +100,7 @@ VideoPlayerWindow::VideoPlayerWindow(QWidget* parent)
"QSlider::handle:horizontal { width: 12px; margin: -4px 0; background: white; border-radius: 6px; }");
m_playBtn = new QPushButton(QStringLiteral("⏸"), m_controls);
m_playBtn->setToolTip(QStringLiteral("Пауза"));
m_playBtn->setToolTip(QCoreApplication::translate("ChatGui", "Pause"));
m_playBtn->setFixedWidth(40);
m_slider = new QSlider(Qt::Horizontal, m_controls);
m_slider->setStyle(new SeekSliderStyle());
@@ -115,7 +116,7 @@ VideoPlayerWindow::VideoPlayerWindow(QWidget* parent)
/* крестик закрытия — отдельно, справа вверху */
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; "
@@ -193,10 +194,10 @@ void VideoPlayerWindow::onStateChanged(int state) {
VideoPlayerEngine::State s = (VideoPlayerEngine::State)state;
if (s == VideoPlayerEngine::Playing) {
m_playBtn->setText(QStringLiteral("⏸"));
m_playBtn->setToolTip(QStringLiteral("Пауза"));
m_playBtn->setToolTip(QCoreApplication::translate("ChatGui", "Pause"));
} else if (s == VideoPlayerEngine::Paused || s == VideoPlayerEngine::Finished) {
m_playBtn->setText(QStringLiteral("▶"));
m_playBtn->setToolTip(QStringLiteral("Играть"));
m_playBtn->setToolTip(QCoreApplication::translate("ChatGui", "Play"));
showControls();
}
}