diff --git a/securedrop/i18n_tool.py b/securedrop/i18n_tool.py index e75b39760a..b0d7689e9b 100755 --- a/securedrop/i18n_tool.py +++ b/securedrop/i18n_tool.py @@ -40,10 +40,12 @@ class I18NTool(object): 'fr_FR': {'name': 'French', 'desktop': 'fr', }, 'el': {'name': 'Greek', 'desktop': 'el', }, 'hi': {'name': 'Hindi', 'desktop': 'hi', }, + 'is': {'name': 'Icelandic', 'desktop': 'is', }, 'it_IT': {'name': 'Italian', 'desktop': 'it', }, 'nb_NO': {'name': 'Norwegian', 'desktop': 'nb_NO', }, 'nl': {'name': 'Dutch', 'desktop': 'nl', }, 'pt_BR': {'name': 'Portuguese, Brasil', 'desktop': 'pt_BR', }, + 'ro': {'name': 'Romanian', 'desktop': 'ro', }, 'ru': {'name': 'Russian', 'desktop': 'ru', }, 'sv': {'name': 'Swedish', 'desktop': 'sv', }, 'tr': {'name': 'Turkish', 'desktop': 'tr', }, @@ -124,7 +126,7 @@ def translate_desktop(self, args): if args.compile: pos = filter(lambda f: f.endswith('.po'), os.listdir(args.translations_dir)) - linguas = map(lambda l: l.rstrip('.po'), pos) + linguas = map(lambda l: l[:-3], pos) content = "\n".join(linguas) + "\n" open(join(args.translations_dir, 'LINGUAS'), 'w').write(content)