replace bios_grub label with (slightly) English words
This commit is contained in:
parent
faa9473a25
commit
a33682f101
|
@ -78,7 +78,7 @@ def _annotations_partition(partition):
|
||||||
r.append(_("configured"))
|
r.append(_("configured"))
|
||||||
else:
|
else:
|
||||||
r.append(_("unconfigured"))
|
r.append(_("unconfigured"))
|
||||||
r.append(_("bios_grub"))
|
r.append(_("BIOS grub spacer"))
|
||||||
elif partition.flag == "extended":
|
elif partition.flag == "extended":
|
||||||
# extended partition
|
# extended partition
|
||||||
r.append(_("extended"))
|
r.append(_("extended"))
|
||||||
|
|
|
@ -234,13 +234,15 @@ class TestFilesystemModel(unittest.TestCase):
|
||||||
model = make_model()
|
model = make_model()
|
||||||
part = make_partition(model, flag="bios_grub")
|
part = make_partition(model, flag="bios_grub")
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
annotations(part), ['new', 'bios_grub'])
|
annotations(part), ['new', 'BIOS grub spacer'])
|
||||||
part.preserve = True
|
part.preserve = True
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
annotations(part), ['existing', 'unconfigured', 'bios_grub'])
|
annotations(part),
|
||||||
|
['existing', 'unconfigured', 'BIOS grub spacer'])
|
||||||
part.device.grub_device = True
|
part.device.grub_device = True
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
annotations(part), ['existing', 'configured', 'bios_grub'])
|
annotations(part),
|
||||||
|
['existing', 'configured', 'BIOS grub spacer'])
|
||||||
|
|
||||||
model = make_model()
|
model = make_model()
|
||||||
part = make_partition(model, flag="boot", grub_device=True)
|
part = make_partition(model, flag="boot", grub_device=True)
|
||||||
|
|
Loading…
Reference in New Issue