!69 [sync] PR-68: translation error about Login

From: @openeuler-sync-bot 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
This commit is contained in:
openeuler-ci-bot 2023-06-19 07:41:59 +00:00 committed by Gitee
commit 22baff91dc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 34 additions and 2 deletions

View File

@ -0,0 +1,25 @@
From 447b041f473a590a92b900e6a63e5365ba7783ca Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Thu, 15 Jun 2023 20:37:40 +0800
Subject: [PATCH] fix translation error about Login
---
ukui-greeter/greeter/loginwindow.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ukui-greeter/greeter/loginwindow.cpp b/ukui-greeter/greeter/loginwindow.cpp
index 616b081..4ab27b7 100644
--- a/ukui-greeter/greeter/loginwindow.cpp
+++ b/ukui-greeter/greeter/loginwindow.cpp
@@ -712,7 +712,7 @@ void LoginWindow::onShowPrompt(QString text, QLightDM::Greeter::PromptType type)
text = tr("Password: ");
m_isPassWdInput = true;
}
- if(text == "login:") {
+ if(text == "login:" || text == "登录:") {
text = tr("Username");
m_name = "*login";
//m_nameLabel->setText(tr("login"));
--
2.33.0

View File

@ -1,6 +1,6 @@
Name: ukui-greeter
Version: 3.1.2
Release: 9
Release: 10
Summary: Lightdm greeter for UKUI
License: GPL-2.0-or-later
URL: http://www.ukui.org
@ -12,7 +12,7 @@ Patch04: 0004-Fix-the-problem-that-the-login-interface-will-flash-back.patch
%if 0%{?kylin}
Patch05: disable-Suspend-and-Sleep-of-ukui-greeter.patch
%endif
Patch06: translation-error-about-Login.patch
BuildRequires: pkgconf qt5-qtbase-devel qt5-qtx11extras-devel qt5-qtsvg-devel lightdm-qt5-devel libX11-devel libXtst-devel libXrandr-devel qt5-qttools-devel imlib2-devel xorg-x11-drivers opencv glib2-devel
BuildRequires: gsettings-qt-devel
Requires: pkgconf
@ -45,6 +45,7 @@ fi
%if 0%{?kylin}
%patch05 -p1
%endif
%patch06 -p1
%build
qmake-qt5
@ -71,6 +72,12 @@ gzip -c ukui-greeter/man/ukui-greeter.8 > %{buildroot}/usr/share/man/man8/ukui-
/usr/lib/ukui-greeter/ukui-greeter-nm-start.sh
%changelog
* Thu Jun 15 2023 peijiankang <peijiankang@kylinos.cn> - 3.1.2-10
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: add translation-error-about-Login.patch
* Wed Jun 14 2023 peijiankang <peijiankang@kylinos.cn> - 3.1.2-9
- Type:bugfix
- ID:NA