Add minor fixes

This commit is contained in:
Igor Chubin 2021-10-30 17:47:43 +02:00
parent 8a348f4546
commit 5782f4f53e
4 changed files with 12 additions and 5 deletions

View File

@ -133,7 +133,7 @@ def translate(text, lang):
def _log_unknown_translation(lang, text):
with open(MISSING_TRANSLATION_LOG % lang, "a") as f_missing_translation:
f_missing_translation.write(text)
f_missing_translation.write(text+"\n")
if "," in text:
terms = text.split(",")

View File

@ -83,6 +83,7 @@ PLAIN_TEXT_AGENTS = [
"powershell",
"fetch",
"aiohttp",
"http_get",
]
PLAIN_TEXT_PAGES = [':help', ':bash.function', ':translation', ':iterm2']

View File

@ -6,9 +6,9 @@ Translation of almost everything.
FULL_TRANSLATION = [
"am", "ar", "af", "be", "bn", "ca", "da", "de", "el", "et",
"fr", "fa", "hi", "hu", "ia", "id", "it", "lt",
"fr", "fa", "hi", "hu", "ia", "id", "it", "lt", "mg",
"nb", "nl", "oc", "pl", "pt-br", "ro",
"ru", "ta", "tr", "th", "uk", "vi", "zh-cn", "zh-tw", "mg",
"ru", "ta", "tr", "th", "uk", "vi", "zh-cn", "zh-tw",
]
PARTIAL_TRANSLATION = [
@ -26,9 +26,9 @@ PROXY_LANGS = [
"cy", "de", "el", "eo", "et", "eu", "fa", "fr",
"fy", "ga", "he", "hr", "hu", "hy",
"ia", "id", "is", "it", "ja", "kk",
"lt", "lv", "mk", "mr", "nb", "nn", "oc",
"lt", "lv", "mg", "mk", "mr", "nb", "nn", "oc",
"ro", "ru", "sl", "th", "pt-br", "uk",
"uz", "vi", "zh-cn", "zh-tw", "mg",
"uz", "vi", "zh-cn", "zh-tw",
]
SUPPORTED_LANGS = FULL_TRANSLATION + PARTIAL_TRANSLATION

View File

@ -1,3 +1,9 @@
module github.com/chubin/wttr.in/v2
go 1.15
require (
github.com/klauspost/lctime v0.1.0 // indirect
github.com/mattn/go-colorable v0.1.11 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
)