From 0d2f073069a81e95845b158864d1a09ad1afea61 Mon Sep 17 00:00:00 2001 From: Nova Date: Thu, 20 Mar 2025 14:49:01 +0330 Subject: [PATCH] make some buttons translatable --- res/translations/fa_IR.ts | 23 +++++++++++++++++++++++ res/translations/ru_RU.ts | 23 +++++++++++++++++++++++ res/translations/zh_CN.ts | 23 +++++++++++++++++++++++ src/main.cpp | 5 +++++ 4 files changed, 74 insertions(+) diff --git a/res/translations/fa_IR.ts b/res/translations/fa_IR.ts index f26b2c3..68b99dc 100644 --- a/res/translations/fa_IR.ts +++ b/res/translations/fa_IR.ts @@ -1975,6 +1975,29 @@ Direct: %2 + + QPlatformTheme + + Cancel + لغو کردن + + + Apply + + + + Yes + + + + No + + + + OK + تایید + + Qv2ray::ui::widgets::AutoCompleteTextEdit diff --git a/res/translations/ru_RU.ts b/res/translations/ru_RU.ts index c128059..13d0d5e 100644 --- a/res/translations/ru_RU.ts +++ b/res/translations/ru_RU.ts @@ -2001,6 +2001,29 @@ Release note: Создать новую группу подписки + + QPlatformTheme + + Cancel + Отмена + + + Apply + + + + Yes + + + + No + + + + OK + OK + + Qv2ray::ui::widgets::AutoCompleteTextEdit diff --git a/res/translations/zh_CN.ts b/res/translations/zh_CN.ts index 53ad467..a4fb735 100644 --- a/res/translations/zh_CN.ts +++ b/res/translations/zh_CN.ts @@ -1990,6 +1990,29 @@ Release note: + + QPlatformTheme + + Cancel + 取消 + + + Apply + + + + Yes + + + + No + + + + OK + 确定 + + Qv2ray::ui::widgets::AutoCompleteTextEdit diff --git a/src/main.cpp b/src/main.cpp index 108d262..0143d0b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -35,6 +35,11 @@ QTranslator* trans = nullptr; QTranslator* trans_qt = nullptr; void loadTranslate(const QString& locale) { + QT_TRANSLATE_NOOP("QPlatformTheme", "Cancel"); + QT_TRANSLATE_NOOP("QPlatformTheme", "Apply"); + QT_TRANSLATE_NOOP("QPlatformTheme", "Yes"); + QT_TRANSLATE_NOOP("QPlatformTheme", "No"); + QT_TRANSLATE_NOOP("QPlatformTheme", "OK"); if (trans != nullptr) { trans->deleteLater(); }