summaryrefslogtreecommitdiff
path: root/bugfix-password-tooltip-text-adapt-language.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-19 03:19:34 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-19 03:19:34 +0000
commite9f07e4582f7977395d5c26d41e3fc97ed9e077c (patch)
tree478a9376a299c9450151b72c29c5c790c1023564 /bugfix-password-tooltip-text-adapt-language.patch
parenta4252603249fd648f2870ce2dcbaf86ebcf1f118 (diff)
automatic import of anacondaopeneuler20.03
Diffstat (limited to 'bugfix-password-tooltip-text-adapt-language.patch')
-rw-r--r--bugfix-password-tooltip-text-adapt-language.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/bugfix-password-tooltip-text-adapt-language.patch b/bugfix-password-tooltip-text-adapt-language.patch
new file mode 100644
index 0000000..4ce6e75
--- /dev/null
+++ b/bugfix-password-tooltip-text-adapt-language.patch
@@ -0,0 +1,36 @@
+From a7de90b4741689b12137dc22f1b478bdd451762f Mon Sep 17 00:00:00 2001
+From: iasunsea <iasunsea@sina.com>
+Date: Thu, 23 Feb 2023 20:19:51 +0800
+Subject: [PATCH] password tooltip text adapt language
+
+---
+ pyanaconda/ui/gui/utils.py | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/pyanaconda/ui/gui/utils.py b/pyanaconda/ui/gui/utils.py
+index 282f1bc53c6..ae32ec2558b 100644
+--- a/pyanaconda/ui/gui/utils.py
++++ b/pyanaconda/ui/gui/utils.py
+@@ -37,6 +37,7 @@
+ from pyanaconda.core.async_utils import async_action_wait, run_in_loop
+ from pyanaconda.core.constants import NOTICEABLE_FREEZE, PASSWORD_HIDE, PASSWORD_SHOW, \
+ PASSWORD_HIDE_ICON, PASSWORD_SHOW_ICON
++from pyanaconda.core.i18n import _
+
+ from pyanaconda.anaconda_loggers import get_module_logger
+ log = get_module_logger(__name__)
+@@ -542,10 +543,10 @@ def set_password_visibility(entry, visible):
+
+ if visible:
+ icon = PASSWORD_HIDE_ICON
+- text = PASSWORD_HIDE
++ text = _(PASSWORD_HIDE)
+ else:
+ icon = PASSWORD_SHOW_ICON
+- text = PASSWORD_SHOW
++ text = _(PASSWORD_SHOW)
+
+ entry.set_visibility(visible)
+ entry.set_icon_from_icon_name(position, icon)
+--
+2.27.0