From 981b30e4af524f1a45f2773112c3c98bef305188 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Sun, 17 Nov 2024 17:20:41 +0800 Subject: [PATCH] Update check script --- src/static/locale/active_languages.json | 2 +- src/static/locale/pl.json | 3 ++- src/static/locale/verify_locale_files.py | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/static/locale/active_languages.json b/src/static/locale/active_languages.json index 76eb264..5deedf6 100644 --- a/src/static/locale/active_languages.json +++ b/src/static/locale/active_languages.json @@ -56,7 +56,7 @@ }, { "lang_id": "pl", - "lang_name": "Polish)", + "lang_name": "Polish", "lang_name_localized": "Polski" } ] diff --git a/src/static/locale/pl.json b/src/static/locale/pl.json index 66816ff..f2a7715 100644 --- a/src/static/locale/pl.json +++ b/src/static/locale/pl.json @@ -238,7 +238,7 @@ "IP Address": "Adres IP", "Enter IP Address / Hostname": "Wpisz Adres IP / Nazwę Hosta", "IP Address / Hostname": "Adres IP / Nazwa Hosta", - "Dashboard IP Address & Listen Port": "Adres IP Portalu WGDashboard oraz Port Nasłuchiwania", + "Dashboard IP Address \\& Listen Port": "Adres IP Portalu WGDashboard oraz Port Nasłuchiwania", "Count": "Ilość", "Geolocation": "Geolokalizacja", "Is Alive": "Jest Online", @@ -313,5 +313,6 @@ "Traceroute": "Trasa Pakietów (Traceroute)", "Autostart": "Automatyczny Start", "Path": "Ścieżka" + } diff --git a/src/static/locale/verify_locale_files.py b/src/static/locale/verify_locale_files.py index 0aa56be..f8d4e5b 100644 --- a/src/static/locale/verify_locale_files.py +++ b/src/static/locale/verify_locale_files.py @@ -36,8 +36,7 @@ for language in active_languages: # Print missing translations print("\t[Missing Translations]") if missing_translation: - print(",\n".join(f'\t\t"{key}": ""' - for key in missing_translation)) + print(",\n".join(f'\t\t"' + key + '": ""' for key in missing_translation)) else: print("\t\tNo missing translations")