From b2ae6d1fcae46ee590ef98b0561cb92681fc7908 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Tue, 20 Feb 2024 10:18:36 +0100 Subject: [PATCH] Update i18n translation files. --- static/i18n_resources_list.txt | 4 +++ static/skin/languages.js | 46 +++++++++++++++++++++--------- test/server.cpp | 52 +++++++++++++++++++++++----------- 3 files changed, 73 insertions(+), 29 deletions(-) diff --git a/static/i18n_resources_list.txt b/static/i18n_resources_list.txt index 33bddf228..1c20f6a4e 100644 --- a/static/i18n_resources_list.txt +++ b/static/i18n_resources_list.txt @@ -1,6 +1,8 @@ skin/i18n/ar.json skin/i18n/bn.json +skin/i18n/br.json skin/i18n/cs.json +skin/i18n/dag.json skin/i18n/de.json skin/i18n/dga.json skin/i18n/el.json @@ -8,10 +10,12 @@ skin/i18n/en.json skin/i18n/es.json skin/i18n/fi.json skin/i18n/fr.json +skin/i18n/ha.json skin/i18n/he.json skin/i18n/hi.json skin/i18n/hy.json skin/i18n/ia.json +skin/i18n/ig.json skin/i18n/it.json skin/i18n/ja.json skin/i18n/ko.json diff --git a/static/skin/languages.js b/static/skin/languages.js index 8585f9ec4..18742b5b4 100644 --- a/static/skin/languages.js +++ b/static/skin/languages.js @@ -7,17 +7,27 @@ const uiLanguages = [ { "iso_code": "bn", "self_name": "বাংলা", - "translation_count": 12 + "translation_count": 14 + }, + { + "iso_code": "br", + "self_name": "brezhoneg", + "translation_count": 35 }, { "iso_code": "cs", "self_name": "Čeština", "translation_count": 25 }, + { + "iso_code": "dag", + "self_name": "Silimiinsili", + "translation_count": 24 + }, { "iso_code": "de", "self_name": "Deutsch", - "translation_count": 49 + "translation_count": 57 }, { "iso_code": "en", @@ -37,12 +47,17 @@ const uiLanguages = [ { "iso_code": "fr", "self_name": "Français", - "translation_count": 52 + "translation_count": 57 + }, + { + "iso_code": "ha", + "self_name": "Turanci", + "translation_count": 57 }, { "iso_code": "he", "self_name": "עברית", - "translation_count": 52 + "translation_count": 57 }, { "iso_code": "hi", @@ -59,10 +74,15 @@ const uiLanguages = [ "self_name": "interlingua", "translation_count": 49 }, + { + "iso_code": "ig", + "self_name": "Bekee", + "translation_count": 57 + }, { "iso_code": "it", "self_name": "italiano", - "translation_count": 29 + "translation_count": 34 }, { "iso_code": "ja", @@ -87,7 +107,7 @@ const uiLanguages = [ { "iso_code": "mk", "self_name": "македонски", - "translation_count": 52 + "translation_count": 57 }, { "iso_code": "ms", @@ -112,12 +132,12 @@ const uiLanguages = [ { "iso_code": "pl", "self_name": "Polski", - "translation_count": 24 + "translation_count": 31 }, { "iso_code": "ru", "self_name": "русский", - "translation_count": 45 + "translation_count": 57 }, { "iso_code": "sc", @@ -137,7 +157,7 @@ const uiLanguages = [ { "iso_code": "sl", "self_name": "slovenščina", - "translation_count": 52 + "translation_count": 57 }, { "iso_code": "sq", @@ -147,7 +167,7 @@ const uiLanguages = [ { "iso_code": "sv", "self_name": "Svenska", - "translation_count": 52 + "translation_count": 57 }, { "iso_code": "te", @@ -157,16 +177,16 @@ const uiLanguages = [ { "iso_code": "tr", "self_name": "Türkçe", - "translation_count": 25 + "translation_count": 57 }, { "iso_code": "zh-hans", "self_name": "英语", - "translation_count": 16 + "translation_count": 54 }, { "iso_code": "zh-hant", "self_name": "繁體中文", - "translation_count": 52 + "translation_count": 57 } ] \ No newline at end of file diff --git a/test/server.cpp b/test/server.cpp index 1841f132b..8e22d852a 100644 --- a/test/server.cpp +++ b/test/server.cpp @@ -84,7 +84,7 @@ const ResourceCollection resources200Compressible{ // TODO: implement cache management of i18n resources //{ STATIC_CONTENT, "/ROOT%23%3F/skin/i18n/test.json?cacheid=unknown" }, { DYNAMIC_CONTENT, "/ROOT%23%3F/skin/languages.js" }, - { STATIC_CONTENT, "/ROOT%23%3F/skin/languages.js?cacheid=9ccd43fd" }, + { STATIC_CONTENT, "/ROOT%23%3F/skin/languages.js?cacheid=5be77f5c" }, { DYNAMIC_CONTENT, "/ROOT%23%3F/catalog/search" }, @@ -289,7 +289,7 @@ R"EXPECTEDRESULT( href="/ROOT%23%3F/skin/kiwix.css?cacheid=2158fad9" - + @@ -323,7 +323,7 @@ R"EXPECTEDRESULT( - + const blankPageUrl = root + "/skin/blank.html?cacheid=6b1fa032"; @@ -1137,17 +1137,27 @@ R"EXPECTEDRESPONSE(const uiLanguages = [ { "iso_code": "bn", "self_name": "বাংলা", - "translation_count": 12 + "translation_count": 14 + }, + { + "iso_code": "br", + "self_name": "brezhoneg", + "translation_count": 35 }, { "iso_code": "cs", "self_name": "Čeština", "translation_count": 25 }, + { + "iso_code": "dag", + "self_name": "Silimiinsili", + "translation_count": 24 + }, { "iso_code": "de", "self_name": "Deutsch", - "translation_count": 49 + "translation_count": 57 }, { "iso_code": "en", @@ -1167,12 +1177,17 @@ R"EXPECTEDRESPONSE(const uiLanguages = [ { "iso_code": "fr", "self_name": "Français", - "translation_count": 52 + "translation_count": 57 + }, + { + "iso_code": "ha", + "self_name": "Turanci", + "translation_count": 57 }, { "iso_code": "he", "self_name": "עברית", - "translation_count": 52 + "translation_count": 57 }, { "iso_code": "hi", @@ -1189,10 +1204,15 @@ R"EXPECTEDRESPONSE(const uiLanguages = [ "self_name": "interlingua", "translation_count": 49 }, + { + "iso_code": "ig", + "self_name": "Bekee", + "translation_count": 57 + }, { "iso_code": "it", "self_name": "italiano", - "translation_count": 29 + "translation_count": 34 }, { "iso_code": "ja", @@ -1217,7 +1237,7 @@ R"EXPECTEDRESPONSE(const uiLanguages = [ { "iso_code": "mk", "self_name": "македонски", - "translation_count": 52 + "translation_count": 57 }, { "iso_code": "ms", @@ -1242,12 +1262,12 @@ R"EXPECTEDRESPONSE(const uiLanguages = [ { "iso_code": "pl", "self_name": "Polski", - "translation_count": 24 + "translation_count": 31 }, { "iso_code": "ru", "self_name": "русский", - "translation_count": 45 + "translation_count": 57 }, { "iso_code": "sc", @@ -1267,7 +1287,7 @@ R"EXPECTEDRESPONSE(const uiLanguages = [ { "iso_code": "sl", "self_name": "slovenščina", - "translation_count": 52 + "translation_count": 57 }, { "iso_code": "sq", @@ -1277,7 +1297,7 @@ R"EXPECTEDRESPONSE(const uiLanguages = [ { "iso_code": "sv", "self_name": "Svenska", - "translation_count": 52 + "translation_count": 57 }, { "iso_code": "te", @@ -1287,17 +1307,17 @@ R"EXPECTEDRESPONSE(const uiLanguages = [ { "iso_code": "tr", "self_name": "Türkçe", - "translation_count": 25 + "translation_count": 57 }, { "iso_code": "zh-hans", "self_name": "英语", - "translation_count": 16 + "translation_count": 54 }, { "iso_code": "zh-hant", "self_name": "繁體中文", - "translation_count": 52 + "translation_count": 57 } ])EXPECTEDRESPONSE"); }