1 Star 0 Fork 22

hanhuihui / python-blivet

forked from src-openEuler / python-blivet 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Incomplete-Chineseization-of-disk-mount.patch 1.97 KB
一键复制 编辑 原始数据 按行查看 历史
hanhuihui 提交于 2023-01-30 06:06 . update to 3.6.1
diff --git a/blivet/devicefactory.py b/blivet/devicefactory.py
index efadd25..7b9243a 100644
--- a/blivet/devicefactory.py
+++ b/blivet/devicefactory.py
@@ -39,6 +39,7 @@ from .partitioning import TotalSizeSet
from .partitioning import do_partitioning
from .size import Size
from .static_data import luks_data
+from .i18n import _
import gi
gi.require_version("BlockDev", "2.0")
@@ -714,7 +715,7 @@ class DeviceFactory(object):
# the container
size = self._get_device_size()
if size <= Size(0):
- raise DeviceFactoryError("not enough free space for new device")
+ raise DeviceFactoryError(_("not enough free space for new device"))
parents = self._get_parent_devices()
@@ -1322,7 +1323,7 @@ class LVMFactory(DeviceFactory):
self.size += self.device.size
if self.size == Size(0):
- raise DeviceFactoryError("not enough free space for new device")
+ raise DeviceFactoryError(_("not enough free space for new device"))
else:
super(LVMFactory, self)._handle_no_size()
diff --git a/po/blivet.pot b/po/blivet.pot
index 40ef843..7d49527 100644
--- a/po/blivet.pot
+++ b/po/blivet.pot
@@ -126,6 +126,10 @@ msgstr ""
msgid "FCoE not available"
msgstr ""
+#: ../blivet/devicefactory.py:718 ../blivet/devicefactory.py:1326
+msgid "not enough free space for new device"
+msgstr ""
+
#: ../blivet/iscsi.py:216
msgid "Unable to change iSCSI initiator name once set"
msgstr ""
diff --git a/po/zh_CN.po b/po/zh_CN.po
index aad3d0f..31f7017 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -150,6 +150,10 @@ msgstr ""
msgid "FCoE not available"
msgstr "FCoE 不可用"
+#: ../blivet/devicefactory.py:718 ../blivet/devicefactory.py:1326
+msgid "not enough free space for new device"
+msgstr "新设备没有足够的剩余空间"
+
#: ../blivet/iscsi.py:216
msgid "Unable to change iSCSI initiator name once set"
msgstr "设定后就无法更改 iSCSI 启动程序名称"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/han_hui_hui/python-blivet.git
git@gitee.com:han_hui_hui/python-blivet.git
han_hui_hui
python-blivet
python-blivet
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891