1 Star 0 Fork 104

bury_8712/anaconda

forked from src-openEuler/anaconda 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bugfix-password-tooltip-text-adapt-language.patch 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
sun_hai 提交于 2023-02-24 09:55 . password tooltip text adapt language
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bury_8712/anaconda.git
git@gitee.com:bury_8712/anaconda.git
bury_8712
anaconda
anaconda
master

搜索帮助