Commit eb3b71c8 authored by anonym's avatar anonym
Browse files

Add helpful translation instructions as comments.

parent 8f72c8fe
......@@ -40,12 +40,16 @@ if __name__ == '__main__':
check=True, capture_output=True)
except subprocess.CalledProcessError as e:
notify(gettext("Import Failed"),
# Translators: Don't translate {path} or {error},
# they are placeholders and will be replaced.
gettext("Failed to import keys from {path}:\n{error}")
.format(path=key_path, error=e.stderr.decode()))
keys = gnupg.GPG().scan_keys(key_path)
uids = set([uid for key in keys for uid in key['uids']])
title = ngettext("Key Imported", "Keys Imported", len(keys))
# Translators: Don't translate {uids}, it's a placeholder and
# will be replaced.
message = ngettext("Imported a key for {uids}",
"Imported keys for {uids}",
len(keys)) \
Supports Markdown
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