From 5cac6005312fd6f0cb47b73571254acaff70078c Mon Sep 17 00:00:00 2001 From: wangzhiyi Date: Tue, 22 Nov 2022 18:13:27 +0800 Subject: Sinicization"not enough free space for new device" --- blivet/devicefactory.py | 5 +++-- po/blivet.pot | 4 ++++ po/zh_CN.po | 4 ++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/blivet/devicefactory.py b/blivet/devicefactory.py index 9214ad5..3d3029e 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") @@ -704,7 +705,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() @@ -1302,7 +1303,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 29f34b9..c8526de 100644 --- a/po/blivet.pot +++ b/po/blivet.pot @@ -50,6 +50,10 @@ msgstr "" msgid "FCoE not available" msgstr "" +#: ../blivet/devicefactory.py:708 ../blivet/devicefactory.py:1306 +msgid "not enough free space for new device" +msgstr "" + #: ../blivet/zfcp.py:62 msgid "You have not specified a device number or the number is invalid" msgstr "" diff --git a/po/zh_CN.po b/po/zh_CN.po index 480801d..05c635e 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -71,6 +71,10 @@ msgstr "" msgid "FCoE not available" msgstr "FCoE 不可用" +#: ../blivet/devicefactory.py:708 ../blivet/devicefactory.py:1306 +msgid "not enough free space for new device" +msgstr "新设备没有足够的剩余空间" + #: ../blivet/zfcp.py:62 msgid "You have not specified a device number or the number is invalid" msgstr "您没有指定设备号码或号码无效" -- 2.27.0