Commit c8d99bac authored by Eli Schwartz's avatar Eli Schwartz Committed by Lukas Fleischer
Browse files

Fix regression in translating anything at all

In commit 840ee20f

 (Rename translation resources from aur to aurweb,
2018-07-07) the translations file was renamed but we never actually
switched to using the renamed translations.

As a result, every single push to the AUR contains the following

    remote: Traceback (most recent call last):
    remote:   File "/usr/bin/aurweb-notify", line 11, in <module>
    remote:     load_entry_point('aurweb==4.7.0', 'console_scripts', 'aurweb-notify')()
    remote:   File "/usr/lib/python3.6/site-packages/aurweb-4.7.0-py3.6.egg/aurweb/scripts/", line 541, in main
    remote:   File "/usr/lib/python3.6/site-packages/aurweb-4.7.0-py3.6.egg/aurweb/scripts/", line 69, in send
    remote:   File "/usr/lib/python3.6/site-packages/aurweb-4.7.0-py3.6.egg/aurweb/scripts/", line 56, in get_body_fmt
    remote:   File "/usr/lib/python3.6/site-packages/aurweb-4.7.0-py3.6.egg/aurweb/scripts/", line 192, in get_body
    remote:   File "/usr/lib/python3.6/site-packages/aurweb-4.7.0-py3.6.egg/aurweb/", line 14, in translate
    remote:   File "/usr/lib/python3.6/", line 514, in translation
    remote:     raise OSError(ENOENT, 'No translation file found for domain', domain)
    remote: FileNotFoundError: [Errno 2] No translation file found for domain: 'aur'

Signed-off-by: Eli Schwartz's avatarEli Schwartz <>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <>
parent 2c037668
......@@ -9,7 +9,7 @@ class Translator:
if lang == 'en':
return s
if lang not in self._translator:
self._translator[lang] = gettext.translation("aur",
self._translator[lang] = gettext.translation("aurweb",
......@@ -131,9 +131,8 @@ function set_lang() {
$streamer = new FileReader('../locale/' . $LANG .
$l10n = new gettext_reader($streamer, true);
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