1 Star 0 Fork 8

brucezhang/anaconda_ocs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
5006-fixed-some-text-not-being-translated.patch 1.81 KB
一键复制 编辑 原始数据 按行查看 历史
brucezhang 提交于 2024-03-04 10:46 +08:00 . Fixed some text not being translated
From a806b0b78981db9e4efd51f645a921d99fea7179 Mon Sep 17 00:00:00 2001
From: Ze Zhang <bbrucezhang@tencent.com>
Date: Mon, 4 Mar 2024 10:25:30 +0800
Subject: [PATCH] fixed some text not being translated
---
pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py | 2 +-
pyanaconda/ui/gui/utils.py | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py b/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
index d1a5204..b9887a9 100644
--- a/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
+++ b/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
@@ -255,7 +255,7 @@ class AddDialog(GUIObject):
self._warning_label = self.builder.get_object("mountPointWarningLabel")
self._size_entry = self.builder.get_object("addSizeEntry")
- self._size_entry.set_tooltip_text(DESIRED_CAPACITY_HINT)
+ self._size_entry.set_tooltip_text(_(DESIRED_CAPACITY_HINT))
self._populate_mount_points()
diff --git a/pyanaconda/ui/gui/utils.py b/pyanaconda/ui/gui/utils.py
index 282f1bc..258ce56 100644
--- a/pyanaconda/ui/gui/utils.py
+++ b/pyanaconda/ui/gui/utils.py
@@ -33,6 +33,7 @@ from gi.repository import Gdk, Gtk
from contextlib import contextmanager
from pyanaconda.core import glib
+from pyanaconda.core.i18n import _
from pyanaconda.threading import threadMgr, AnacondaThread
from pyanaconda.core.async_utils import async_action_wait, run_in_loop
from pyanaconda.core.constants import NOTICEABLE_FREEZE, PASSWORD_HIDE, PASSWORD_SHOW, \
@@ -549,4 +550,4 @@ def set_password_visibility(entry, visible):
entry.set_visibility(visible)
entry.set_icon_from_icon_name(position, icon)
- entry.set_icon_tooltip_text(position, text)
+ entry.set_icon_tooltip_text(position, _(text))
--
2.41.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bbrucezhang/anaconda_ocs.git
git@gitee.com:bbrucezhang/anaconda_ocs.git
bbrucezhang
anaconda_ocs
anaconda_ocs
master

搜索帮助