代码拉取完成,页面将自动刷新
同步操作将从 OpenCloudOS Stream/anaconda 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。