!58 fix translation problem of ukui-panel

From: @peijiankang 
Reviewed-by: @dou33 
Signed-off-by: @dou33
This commit is contained in:
openeuler-ci-bot 2023-01-10 08:16:32 +00:00 committed by Gitee
commit 3fe55e03b2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 45 additions and 5 deletions

View File

@ -0,0 +1,38 @@
From c597f6c0b035ff6d0f6e4b1b129691ecc01d0896 Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Mon, 9 Jan 2023 16:12:14 +0800
Subject: [PATCH] fix translation problem of ukui-panel
---
cmake/UkuiPluginTranslationTs.cmake | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/cmake/UkuiPluginTranslationTs.cmake b/cmake/UkuiPluginTranslationTs.cmake
index 6409d30..3faa70e 100644
--- a/cmake/UkuiPluginTranslationTs.cmake
+++ b/cmake/UkuiPluginTranslationTs.cmake
@@ -12,17 +12,17 @@ endif()
if(EXISTS ${TS_FILES})
message(STATUS "${TS_FILES} is EXISTS")
execute_process(
- COMMAND lupdate -recursive ${CMAKE_CURRENT_SOURCE_DIR} -target-language zh_CN -ts ${TS_FILES}
+ COMMAND lupdate-qt5 -recursive ${CMAKE_CURRENT_SOURCE_DIR} -target-language zh_CN -ts ${TS_FILES}
)
execute_process(
- COMMAND lrelease ${TS_FILES}
+ COMMAND lrelease-qt5 ${TS_FILES}
)
else()
execute_process(
- COMMAND lupdate -recursive ${CMAKE_CURRENT_SOURCE_DIR} -target-language zh_CN -ts ${TS_FILES}
+ COMMAND lupdate-qt5 -recursive ${CMAKE_CURRENT_SOURCE_DIR} -target-language zh_CN -ts ${TS_FILES}
)
execute_process(
- COMMAND lrelease ${TS_FILES}
+ COMMAND lrelease-qt5 ${TS_FILES}
)
endif()
--
2.33.0

View File

@ -2,12 +2,12 @@
Name: ukui-panel
Version: 3.1.0
Release: 3
Release: 4
Summary: ukui desktop panel
License: LGPL-2.0-or-later and GPL-2.0-or-later and BSD
URL: http://www.ukui.org
Source0: %{name}-%{version}.tar.gz
Source1: ukui-panel_zh_CN.qm
Patch01: 0001-fix-translation-problem-of-ukui-panel.patch
BuildRequires: cmake
BuildRequires: alsa-lib-devel
@ -40,7 +40,6 @@ BuildRequires: libpeony-dev
BuildRequires: dconf-devel
BuildRequires: libpeony-dev
BuildRequires: libXtst-devel
BuildRequires: libX11-devel
BuildRequires: libudisks2-devel
BuildRequires: xcb-util-renderutil-devel
BuildRequires: xcb-util-image-devel
@ -59,8 +58,8 @@ Recommends: time-shutdown
%prep
%setup -q
%patch01 -p1
cp -rf %{SOURCE1} %{_builddir}/%{name}-%{version}/panel/resources
%build
mkdir build && cd build
%{cmake3} ..
@ -82,7 +81,10 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/*
%changelog
* Thu Dec 08 2022 huayadong <huayadong@kylinos.cn> - 3.0.1-3
* Mon Jan 9 2023 peijiankang <peijiankang@kylinos.cn> - 3.1.0-4
- fix translation problem of ukui-panel
* Thu Dec 08 2022 huayadong <huayadong@kylinos.cn> - 3.1.0-3
- delete Recommends: libkysdk-system
* Thu Dec 8 2022 douyan <douyan@kylinos.cn> - 3.1.0-2

Binary file not shown.