Update locales

This commit is contained in:
Nils Maier 2020-08-29 19:29:52 +02:00
parent 8ad4d7a59d
commit db1b50bc90
4 changed files with 17 additions and 15 deletions

View File

@ -19,6 +19,8 @@
"pl": "Polski [pl]", "pl": "Polski [pl]",
"pt": "Português (Brasil) [pt]", "pt": "Português (Brasil) [pt]",
"ru": "Русский [ru]", "ru": "Русский [ru]",
"zh_CN": "简体中文 [zh_CN]", "sv": "Svenska (SV) [sv]",
"zh_TW": "正體中文 [zh_TW]" "tr": "Türkçe TR) [tr]",
"zh_CN": "中文(简体) [zh_CN]",
"zh_TW": "正體中文 (TW) [zh_TW]"
} }

View File

@ -36,11 +36,11 @@
"description": "Button text" "description": "Button text"
}, },
"batch_batch": { "batch_batch": {
"message": "Als Stapelverarbeitung downloaden", "message": "Als Batch downloaden",
"description": "Button text" "description": "Button text"
}, },
"batch_desc": { "batch_desc": {
"message": "Die aktuelle URL scheint Anweisungen für eine Stapelverarbeitung zu enthalten.", "message": "Die aktuelle URL scheint Anweisungen für einen Batch zu enthalten.",
"description": "" "description": ""
}, },
"batch_items": { "batch_items": {
@ -52,7 +52,7 @@
"description": "Messagebox info text for batch confirmations" "description": "Messagebox info text for batch confirmations"
}, },
"batch_question": { "batch_question": {
"message": "Als Stapelverarbeitung oder als einfachen Download hinzufügen?", "message": "Als Batch oder als einfachen Download hinzufügen?",
"description": "Messagebox info text for batch confirmations" "description": "Messagebox info text for batch confirmations"
}, },
"batch_single": { "batch_single": {
@ -60,7 +60,7 @@
"description": "Button text for batch confirmation" "description": "Button text for batch confirmation"
}, },
"batch_title": { "batch_title": {
"message": "Stapelverarbeitung", "message": "Batch",
"description": "Messagebox title for batch confirmations" "description": "Messagebox title for batch confirmations"
}, },
"cancel": { "cancel": {
@ -228,7 +228,7 @@
"description": "Download (noun); e.g. Download column in select" "description": "Download (noun); e.g. Download column in select"
}, },
"download_verb": { "download_verb": {
"message": "herunterladen", "message": "Herunterladen",
"description": "Download (verb/action); e.g. in single and select buttons" "description": "Download (verb/action); e.g. in single and select buttons"
}, },
"dta_regular": { "dta_regular": {
@ -720,11 +720,11 @@
"description": "Messagebox text" "description": "Messagebox text"
}, },
"remove_batch_downloads": { "remove_batch_downloads": {
"message": "Aktuelle Stapelverarbeitung entfernen", "message": "Aktuellen Batch entfernen",
"description": "Menu text" "description": "Menu text"
}, },
"remove_batch_downloads_question": { "remove_batch_downloads_question": {
"message": "Wirklich alle Downloads der aktuellen Stapelverarbeitung entfernen?", "message": "Wirklich alle Downloads des aktuellen Batch entfernen?",
"description": "Messagebox text" "description": "Messagebox text"
}, },
"remove_complete_downloads": { "remove_complete_downloads": {
@ -844,7 +844,7 @@
"description": "UI for renaming; currently unused" "description": "UI for renaming; currently unused"
}, },
"renamer_batch": { "renamer_batch": {
"message": "Stapelverarbeitungs-Nummer", "message": "Batch-Nummer",
"description": "Mask text; see mask button" "description": "Mask text; see mask button"
}, },
"renamer_d": { "renamer_d": {
@ -872,7 +872,7 @@
"description": "Mask text; see mask button" "description": "Mask text; see mask button"
}, },
"renamer_idx": { "renamer_idx": {
"message": "Fortlaufende Nummer der Stapelverarbeitung", "message": "Fortlaufende Nummer des Batch",
"description": "Mask text; see mask button" "description": "Mask text; see mask button"
}, },
"renamer_info": { "renamer_info": {
@ -892,7 +892,7 @@
"description": "Mask text; see mask button" "description": "Mask text; see mask button"
}, },
"renamer_num": { "renamer_num": {
"message": "Alias für \"Stapelverarbeitung\"", "message": "Alias für \"Batch\"",
"description": "Mask text; see mask button" "description": "Mask text; see mask button"
}, },
"renamer_qstring": { "renamer_qstring": {
@ -1062,7 +1062,7 @@
"description": "dialog text" "description": "dialog text"
}, },
"single_batchexamples": { "single_batchexamples": {
"message": "Stapelverarbeitung wird unterstützt, z.B.:", "message": "Stapelverarbeitung (Batch) wird unterstützt, z.B.:",
"description": "Header text; single window" "description": "Header text; single window"
}, },
"single_header": { "single_header": {

View File

@ -6,7 +6,7 @@ langs = sorted(Path("_locales").glob("**/messages.json"), key=lambda p: p.parent
all = {} all = {}
for m in langs: for m in langs:
loc = m.parent.name loc = m.parent.name
with m.open("r") as mp: with m.open("r", encoding="utf-8") as mp:
lang = json.load(mp).get("language").get("message") lang = json.load(mp).get("language").get("message")
if not lang: if not lang:
raise Exception(f"{m}: no language") raise Exception(f"{m}: no language")