aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2023-01-26 10:32:39 +0100
committerPapoteur <papoteur@mageia.org>2023-01-26 10:32:39 +0100
commit75cb9cc75401080c1f6f519cf9350364fd271aab (patch)
treee612b1df2c1f181c99f926a281a6606bf1cca319 /lib
parente291478b1b8f5a0e35607b8e7c29535d73a44db5 (diff)
downloadisodumper-75cb9cc75401080c1f6f519cf9350364fd271aab.tar
isodumper-75cb9cc75401080c1f6f519cf9350364fd271aab.tar.gz
isodumper-75cb9cc75401080c1f6f519cf9350364fd271aab.tar.bz2
isodumper-75cb9cc75401080c1f6f519cf9350364fd271aab.tar.xz
isodumper-75cb9cc75401080c1f6f519cf9350364fd271aab.zip
fix translation string: not translate variables included
Diffstat (limited to 'lib')
-rwxr-xr-xlib/isodumper.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index efb6b51..c28791d 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -266,6 +266,7 @@ class IsoDumper(basedialog.BaseDialog):
partitions = self.u.get_partitions(self.dev.split('(')[1].split(')')[0])
# I18N: verb in singular 3rd person
self.logger(_("Contains this/these partition(s)"))
+ # I18N: don't translate keywords inside {}
for partition in partitions:
self.logger(_("{device}: Type={type}, Label={label}").format(device=partition['device'],
type=partition['type'],
@@ -485,7 +486,7 @@ class IsoDumper(basedialog.BaseDialog):
time.sleep(.2)
success, message = self.iface.end()
if success:
- #: don't translate source or target
+ # I18N: don't translate source nor target
message = _('{source} successfully written to {target}').format(source=source.split('/')[-1], target=dest)
self.logger(message)
logging.info(message)
@@ -524,7 +525,7 @@ class IsoDumper(basedialog.BaseDialog):
pass
else:
return
- #: don't translate source or target
+ # I18N: don't translate source nor target
self.progress.setLabel(_('Writing {source} to {target}').format(source=source.split('/')[-1],
target=target.split('/')[-1]))
message = _('Executing copy from {source} to {target}').format(source=source, target=target)
@@ -544,7 +545,7 @@ class IsoDumper(basedialog.BaseDialog):
time.sleep(.5)
success, message = self.iface.end()
if success:
- #: don't translate source or target
+ # I18N: don't translate source nor target
message = _('Image {source} written to {target}').format(source=source.split('/')[-1],
target=target)
message += "\n" + _('Bytes written: {}').format(str(b))