Commit c0124318 authored by segfault's avatar segfault

Add some more comments for translators

parent dbfa2a1f
......@@ -54,12 +54,12 @@ class Volume(object):
partition = self.udisks_object.get_partition()
if block_label:
# Translators: Don't translate {volume_label} or {volume_size},
# it's a placeholder and will be replaced.
# they are placeholders and will be replaced.
return _("{volume_label} ({volume_size})").format(volume_label=block_label,
volume_size=self.size_for_display)
elif partition and partition.props.name:
# Translators: Don't translate {partition_name} or {partition_size},
# it's a placeholder and will be replaced.
# they are placeholders and will be replaced.
return _("{partition_name} ({partition_size})").format(partition_name=partition.props.name,
partition_size=self.size_for_display)
else:
......@@ -223,6 +223,8 @@ class Volume(object):
else:
title = _("Error unlocking volume")
# Translators: Don't translate {volume_name} or {error_message},
# they are placeholder and will be replaced.
body = _("Couldn't unlock volume {volume_name}:\n{error_message}".format(volume_name=self.name, error_message=e.message))
self.manager.show_warning(title, body)
return
......
......@@ -140,6 +140,7 @@ def _notify_failure(summary, details=None):
log.
"""
if details:
# Translators: Don't translate {details}, it's a placeholder and will be replaced.
details = _("{details} Please check your list of additional "
"software or read the system log to "
"understand the problem.").format(details=details)
......@@ -308,6 +309,7 @@ def handle_installed_packages(packages):
logging.warn("Warning: persistence storage is locked, can't add "
"additional software.")
elif is_tails_media_writable():
# Translators: Don't translate {packages}, it's a placeholder and will be replaced.
if _notify(_("Add {packages} to your additional software?").format(
packages=_format_iterable(packages)),
_("To install it automatically when starting Tails, you "
......@@ -328,6 +330,7 @@ def handle_installed_packages(packages):
logging.warn("Cannot create persistent storage on this media.")
if not os.path.isfile(ASP_STATE_INSTALLER_ASKED):
open(ASP_STATE_INSTALLER_ASKED, 'a').close()
# Translators: Don't translate {packages}, it's a placeholder and will be replaced.
_notify(_("You could install {packages} automatically when "
"starting Tails").format(
packages=_format_iterable(packages)),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment