diff --git a/bin/proxy.py b/bin/proxy.py index 16a6598..8276a89 100755 --- a/bin/proxy.py +++ b/bin/proxy.py @@ -67,8 +67,8 @@ def load_translations(): trans = trans.strip() orig = orig.strip() - translation[orig] = trans - translations[lang.lower()] = translation + translation[orig.lower()] = trans + translations[lang] = translation return translations TRANSLATIONS = load_translations() @@ -274,7 +274,7 @@ def proxy(path): # WWO tweaks query_string += "&extra=localObsTime" query_string += "&includelocation=yes" - content, headers = _fetch_content_and_headers(path, query) + content, headers = _fetch_content_and_headers(path, query_string) content = add_translations(content, lang)