From 295d8f00f94a1f359dfbdf936ef05af2d346aa9b Mon Sep 17 00:00:00 2001 From: dou33 Date: Thu, 28 Oct 2021 15:17:00 +0800 Subject: [PATCH] fix switch translation issue --- 0001-fix-switch-translation-issue.patch | 33 +++++++++++++++++++++++++ kylin-calculator.spec | 5 +++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 0001-fix-switch-translation-issue.patch diff --git a/0001-fix-switch-translation-issue.patch b/0001-fix-switch-translation-issue.patch new file mode 100644 index 0000000..b49f82f --- /dev/null +++ b/0001-fix-switch-translation-issue.patch @@ -0,0 +1,33 @@ +From f535ce4d5691a5d0540376da32cad76ec2673028 Mon Sep 17 00:00:00 2001 +From: dou33 +Date: Thu, 28 Oct 2021 15:13:26 +0800 +Subject: [PATCH] fix switch translation issue + +--- + src/menumodule.cpp | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/menumodule.cpp b/src/menumodule.cpp +index c5fa261..744b06d 100644 +--- a/src/menumodule.cpp ++++ b/src/menumodule.cpp +@@ -148,13 +148,13 @@ void menuModule::triggerMenu(QAction *act){ + helpAction(); + } + else if(tr("standard") == str){ +- emit menuModuleChanged(str); ++ emit menuModuleChanged(QString("standard")); + } + else if(tr("scientific") == str){ +- emit menuModuleChanged(str); ++ emit menuModuleChanged(QString("scientific")); + } + else if(tr("exchange rate") == str){ +- emit menuModuleChanged(str); ++ emit menuModuleChanged(QString("exchange rate")); + } + } + +-- +2.24.3 (Apple Git-128) + diff --git a/kylin-calculator.spec b/kylin-calculator.spec index 679437d..ebd1ec5 100644 --- a/kylin-calculator.spec +++ b/kylin-calculator.spec @@ -1,7 +1,7 @@ %define debug_package %{nil} Name: kylin-calculator Version: 1.0.25 -Release: 1 +Release: 2 Summary: Calculator tool for UKUI License: GPL-3+ URL: http://www.ukui.org @@ -58,6 +58,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/pixmaps/calc.png %changelog +* Thu Oct 28 2021 douyan - 1.0.25-2 +- fix switch translation issue + * Wed Oct 27 2021 tanyulong - 1.0.25-1 - update to upstream version 1.0.25