From 7efbb926f2ade245df080d8501e030b7124fe453 Mon Sep 17 00:00:00 2001 From: lvfei Date: Fri, 9 Sep 2022 03:52:57 -0400 Subject: [PATCH] add update soam zangwen taanslate (cherry picked from commit bb12657f517f947f21a903f901c9d7e5b5a1f764) --- ...dd-and-update-some-zangwen-translate.patch | 304 ++++++++++++++++++ kylin-calculator.spec | 12 +- 2 files changed, 314 insertions(+), 2 deletions(-) create mode 100644 0001-add-and-update-some-zangwen-translate.patch diff --git a/0001-add-and-update-some-zangwen-translate.patch b/0001-add-and-update-some-zangwen-translate.patch new file mode 100644 index 0000000..d81e268 --- /dev/null +++ b/0001-add-and-update-some-zangwen-translate.patch @@ -0,0 +1,304 @@ +From bf02969975fd8a4a4d20ad5f6aaca8ce3a140c75 Mon Sep 17 00:00:00 2001 +From: lvfei +Date: Fri, 9 Sep 2022 15:46:04 +0800 +Subject: [PATCH] add-and-update-some-zangwen-translate + +--- + translations/generate_translations_qm.sh | 4 +- + translations/kylin-calculator_bo_CN.ts | 154 +++++++++++++++++++---- + 2 files changed, 133 insertions(+), 25 deletions(-) + +diff --git a/translations/generate_translations_qm.sh b/translations/generate_translations_qm.sh +index 62fa6b5..2359710 100755 +--- a/translations/generate_translations_qm.sh ++++ b/translations/generate_translations_qm.sh +@@ -4,5 +4,5 @@ ts_file_list=(`ls translations/*.ts`) + + for ts in "${ts_file_list[@]}" + do +- lrelease "${ts}" +-done +\ No newline at end of file ++ lrelease-qt5 "${ts}" ++done +diff --git a/translations/kylin-calculator_bo_CN.ts b/translations/kylin-calculator_bo_CN.ts +index ba74419..8bcc783 100644 +--- a/translations/kylin-calculator_bo_CN.ts ++++ b/translations/kylin-calculator_bo_CN.ts +@@ -1,15 +1,54 @@ + + + ++ ++ Calc ++ ++ The expression is empty! ++ མཚོན་པའི་རྣམ་པ།! ++ ++ ++ Expression error! ++ མཚོན་ཚུལ་ནོར་སྐྱོན།! ++ ++ ++ Missing left parenthesis! ++ གཡོན་ལྷུང་ཨང་གྲངས་ཆད་སྐྱོན་ཤོར་བ།! ++ ++ ++ The value is too large! ++ རིན་ཐང་དེ་འདྲ་ཆེ་དྲགས་པ།! ++ ++ ++ Miss operand! ++ བཀོལ་སྤྱོད་གྲངས་མེད།! ++ ++ ++ Operator undefined! ++ རྩིས་རྟགས་ལ་མཚན་ཉིད་བཞག་པ།! ++ ++ ++ Divisor cannot be 0! ++ ཁ་ཤས་ནི་0ཡིན།! ++ ++ ++ The shifted right operand is negative! ++ གཡས་སྤོས་བཀོལ་སྤྱོད་ཀྱི་གྲངས་ཀ་ལ་མཚོན་ན།! ++ ++ ++ Right operand error! ++ གཡས་སྤོས་བཀོལ་སྤྱོད་ཀྱི་གྲངས་ཀ་ལ་མཚོན་ན།! ++ ++ + + FuncList + + Unit converter +- ++ ཕབ་རྩིས་ཆས། + + + exchange rate +- དངུལ་བརྗེས་འཛའ་ཐང་།འཛའ་ཐང་། ++ འཛའ་ཐང་། + + + standard +@@ -24,6 +63,17 @@ + ཚན་རིག + + ++ ++ IntelModeList ++ ++ standard ++ ཚད་གཞི། ++ ++ ++ scientific ++ ཚན་རིག ++ ++ + + MainWindow + +@@ -36,19 +86,19 @@ + + + input too long +- ནང་འཇུག་རིང་བ། ++ ནང་འཇུག་དུས་ཚོད་རིང་བ། + + + exchange rate +- དངུལ་བརྗེས་འཛའ་ཐང་།འཛའ་ཐང་། ++ འཛའ་ཐང་། + + + Input error! +- ནང་འཇུག! ++ ནང་འཇུག་ནོར་འཁྲུལ་བྱུང་བ།! + + + Error! +- སྐྱོན་ཆ་སཆུགས་ཤིང་ནོར་བ་ནོར་འཁྲུལ་! ++ ནོར་འཁྲུལ།! + + + standard +@@ -56,7 +106,7 @@ + + + calculator +- རྩིས་ཆས།རྩིས་རྒྱག་འཕྲུལ་ཆས། ++ རྩིས་ཆས།(_C) + + + Calculator +@@ -68,14 +118,29 @@ + + + +- QObject ++ ProgramDisplay + +- Chinese Yuan +- མི་དམངས ++ input too long! ++ ནང་འཇུག་རིང་བ།! + ++ ++ ++ ProgramModel + +- US Dollar +- མེ་སྒོར། ++ Input error! ++ ནང་འཇུག་ནོར་འཁྲུལ་བྱུང་བ།! ++ ++ ++ DisplayBinary ++ ཁྱད་པ་གཉིས་ལྡན་པ། ++ ++ ++ HideBinary ++ ཏང་གཉིས་དང་། ++ ++ ++ ShowBinary ++ ཁྱད་པ་གཉིས་ལྡན་པ། + + + +@@ -90,7 +155,7 @@ + + + Exchange Rate +- དངུལ་བརྗེས་འཛའ་ཐང་།འཛའ་ཐང་། ++ འཛའ་ཐང་། + + + Standard +@@ -98,26 +163,61 @@ + + + StayTop +- རྩེ་མོ། ++ མགོར་འཇོག་པ། + + + Scientific + ཚན་རིག + ++ ++ standard ++ ཚད་གཞི། ++ ++ ++ scientific ++ ཚན་རིག ++ ++ ++ Programmer ++ བྱ་རིམ་པ། ++ ++ ++ Maximize ++ ཆེས་ཆེ་བ། ++ ++ ++ ++ ToolBar ++ ++ DisplayBinary ++ ཁྱད་པ་གཉིས་ལྡན་པ། ++ ++ ++ HideBinary ++ ཏང་གཉིས་དང་། ++ ++ ++ ShowBinary ++ ཁྱད་པ་གཉིས་ལྡན་པ། ++ + + + ToolModelOutput + + US Dollar +- མེ་སྒོར། ++ ཨ་སྒོར། + + + Rate update +- དངུལ་བརྗེས་འཛའ་ཐང་། ++ འཛའ་ཐང་རིམ་འགྱུར། + + + Chinese Yuan +- མི་དམངས ++ མི་དམངས་ཤོག་སྒོར། ++ ++ ++ Error! ++ ནོར་འཁྲུལ།! + + + +@@ -128,11 +228,11 @@ + + + search +- བཤེར་འཚོལ། ++ བཤེར་འཚོལ། + + + currency +- དངོས་རྫས ++ དངུལ་ལོར། + + + +@@ -155,7 +255,7 @@ + + + Quit +- ཕྱིར་འདོན་པ། ++ ཕྱིར་འབུད། + + + About +@@ -171,15 +271,15 @@ + + + Exchange Rate +- དངུལ་བརྗེས་འཛའ་ཐང་།འཛའ་ཐང་། ++ འཛའ་ཐང་། + + + Service & Support: +- ཞབས་ཞུ། & ཤོག: ++ ཞབས་ཞུ་དང་རྒྱབ་སྐྱོར་ཚོགས་པ།: + + + Version: +- དཔར་གཞི་: ++ པར་གཞི།: + + + Standard +@@ -193,5 +293,13 @@ + Scientific + ཚན་རིག + ++ ++ Programmer ++ བྱ་རིམ་པ། ++ ++ ++ Calculator is a lightweight calculator based on Qt5, which provides standard calculation, scientific calculation and exchange rate conversion. ++ ས་པ་ནི་Qt5ཡི་ཚད་དམའ་བའི་གནས་ཚུལ་ལ་གཞིགས་ཏེ་ཚད་གཞི་ལྟར་རྩིས་རྒྱག་པ་དང་།ཚན་རིག་དང་མཐུན་པ།དངུལ་བརྗེས་འཛའ་ཐང་།. ++ + + +-- +2.27.0 + diff --git a/kylin-calculator.spec b/kylin-calculator.spec index 569b6cb..acf3ddb 100644 --- a/kylin-calculator.spec +++ b/kylin-calculator.spec @@ -1,12 +1,12 @@ %define debug_package %{nil} Name: kylin-calculator Version: 1.0.34 -Release: 2 +Release: 3 Summary: Calculator tool for UKUI License: LGPL-3.0-or-later and GPL-3.0-or-later URL: http://www.ukui.org Source0: %{name}-%{version}.tar.gz - +Patch01: 0001-add-and-update-some-zangwen-translate.patch BuildRequires: qt5-qtbase-devel BuildRequires: qtchooser @@ -17,6 +17,7 @@ BuildRequires: pkgconf BuildRequires: gsl-devel BuildRequires: qt5-qtx11extras-devel BuildRequires: gsettings-qt-devel +BuildRequires: qt5-linguist # Requires: NetworkManager @@ -29,6 +30,7 @@ BuildRequires: gsettings-qt-devel %prep %setup -q +%patch01 -p1 %build %{qmake_qt5} %{_qt5_qmake_flags} CONFIG+=enable-by-default kylin-calculator.pro @@ -65,6 +67,12 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/kylin-calculator/translations/kylin-calculator_bo_CN.qm %changelog +* Fri Sep 9 2022 lvfei - 1.0.34-3 +- Type:bugfix +- CVE: +- SUG:NA +- DESC: add patch:0001-add-and-update-some-zangwen-translate.patch + * Wed May 18 2022 tanyulong - 1.0.34-2 - Improve the project according to the requirements of compliance improvement -- Gitee