mirror of
https://github.com/chubin/wttr.in
synced 2025-01-12 20:18:46 +00:00
Fix typos
This commit is contained in:
parent
492f4f5e50
commit
49aefecf99
1 changed files with 3 additions and 3 deletions
|
@ -67,8 +67,8 @@ def load_translations():
|
||||||
trans = trans.strip()
|
trans = trans.strip()
|
||||||
orig = orig.strip()
|
orig = orig.strip()
|
||||||
|
|
||||||
translation[orig] = trans
|
translation[orig.lower()] = trans
|
||||||
translations[lang.lower()] = translation
|
translations[lang] = translation
|
||||||
return translations
|
return translations
|
||||||
TRANSLATIONS = load_translations()
|
TRANSLATIONS = load_translations()
|
||||||
|
|
||||||
|
@ -274,7 +274,7 @@ def proxy(path):
|
||||||
# WWO tweaks
|
# WWO tweaks
|
||||||
query_string += "&extra=localObsTime"
|
query_string += "&extra=localObsTime"
|
||||||
query_string += "&includelocation=yes"
|
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)
|
content = add_translations(content, lang)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue