From 90613f9c8884f9a224838ee55fa42c9acb64b30e Mon Sep 17 00:00:00 2001 From: Doxa Maps Date: Tue, 29 Sep 2026 04:02:54 +0000 Subject: [PATCH] Translate the three poster-wall nouns the regions list was passing in English MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sr's census found item-noun="country", item-noun-plural="countries" and unit="UPG" passed as literals. All three reach the DOM: PosterWall renders the noun pair at its section count (n === 1 ? itemNoun : plural) and the unit beside each row's count, so in Arabic the chrome translated and these stayed English. The noun pair now goes through t(). Country and Countries were already in the catalogue in all eleven locales -- Land/Länder, الدولة/الدول, Страна/Страны -- so this adds no strings, and PosterWall keeps making its own singular/plural choice with the caller supplying both forms, which is what its props are for. unit stays "UPG" on purpose. It is DX-life's term of art, and their own Arabic common.json carries the literal "UPG" rather than translating it; matching them is the point of the port. It is the one entry the census still reports here. A fourth literal the census did not flag went with them: the prayer-list "Coming soon" sentence, which reaches exportState.message and so renders too. That one had no key, so it lands as an English-source key -- the convention useRegionsI18n exists to serve -- translated in all eleven locales, 77 keys each, parity green. MEASURED, this plugin's entries in check:hardcoded-english: 3 before, 1 after. --- library/i18n/locales/ar/regions.json | 3 ++- library/i18n/locales/de/regions.json | 3 ++- library/i18n/locales/en/regions.json | 3 ++- library/i18n/locales/es/regions.json | 3 ++- library/i18n/locales/fr/regions.json | 3 ++- library/i18n/locales/hi/regions.json | 3 ++- library/i18n/locales/it/regions.json | 3 ++- library/i18n/locales/pt/regions.json | 3 ++- library/i18n/locales/ro/regions.json | 3 ++- library/i18n/locales/ru/regions.json | 3 ++- library/i18n/locales/zh/regions.json | 3 ++- plugin-designs/regions-dashboard/regions-list.vue | 6 +++--- 12 files changed, 25 insertions(+), 14 deletions(-) diff --git a/library/i18n/locales/ar/regions.json b/library/i18n/locales/ar/regions.json index 128a90e47..675644ac0 100644 --- a/library/i18n/locales/ar/regions.json +++ b/library/i18n/locales/ar/regions.json @@ -74,5 +74,6 @@ "Countries: %count%": "الدول: %count%", "Regions: %count%": "المناطق: %count%", "countryCount": "لا دول | دولة واحدة | دولتان | {n} دول | {n} دولة | {n} دولة", - "regionCount": "لا مناطق | منطقة واحدة | منطقتان | {n} مناطق | {n} منطقة | {n} منطقة" + "regionCount": "لا مناطق | منطقة واحدة | منطقتان | {n} مناطق | {n} منطقة | {n} منطقة", + "Coming soon — a prayer list will be generated for each country, naming every unengaged people group within it.": "قريبًا — ستُنشأ قائمة صلاة لكل دولة، تذكر كل مجموعة شعبية غير مبلَّغة فيها." } diff --git a/library/i18n/locales/de/regions.json b/library/i18n/locales/de/regions.json index 9ee78f5ec..97995ed6c 100644 --- a/library/i18n/locales/de/regions.json +++ b/library/i18n/locales/de/regions.json @@ -74,5 +74,6 @@ "Countries: %count%": "Länder: %count%", "Regions: %count%": "Regionen: %count%", "countryCount": "{n} Länder | {n} Land | {n} Länder", - "regionCount": "{n} Regionen | {n} Region | {n} Regionen" + "regionCount": "{n} Regionen | {n} Region | {n} Regionen", + "Coming soon — a prayer list will be generated for each country, naming every unengaged people group within it.": "Demnächst — für jedes Land wird eine Gebetsliste erstellt, die jede unerreichte Volksgruppe darin benennt." } diff --git a/library/i18n/locales/en/regions.json b/library/i18n/locales/en/regions.json index 64685b956..d26ba714d 100644 --- a/library/i18n/locales/en/regions.json +++ b/library/i18n/locales/en/regions.json @@ -74,5 +74,6 @@ "Countries: %count%": "Countries: %count%", "Regions: %count%": "Regions: %count%", "countryCount": "{n} countries | {n} country | {n} countries", - "regionCount": "{n} regions | {n} region | {n} regions" + "regionCount": "{n} regions | {n} region | {n} regions", + "Coming soon — a prayer list will be generated for each country, naming every unengaged people group within it.": "Coming soon — a prayer list will be generated for each country, naming every unengaged people group within it." } diff --git a/library/i18n/locales/es/regions.json b/library/i18n/locales/es/regions.json index d9767dc38..9c697782c 100644 --- a/library/i18n/locales/es/regions.json +++ b/library/i18n/locales/es/regions.json @@ -74,5 +74,6 @@ "Countries: %count%": "Países: %count%", "Regions: %count%": "Regiones: %count%", "countryCount": "{n} países | {n} país | {n} países", - "regionCount": "{n} regiones | {n} región | {n} regiones" + "regionCount": "{n} regiones | {n} región | {n} regiones", + "Coming soon — a prayer list will be generated for each country, naming every unengaged people group within it.": "Muy pronto — se generará una lista de oración para cada país, nombrando cada grupo étnico no alcanzado que haya en él." } diff --git a/library/i18n/locales/fr/regions.json b/library/i18n/locales/fr/regions.json index 5452699ba..a24367745 100644 --- a/library/i18n/locales/fr/regions.json +++ b/library/i18n/locales/fr/regions.json @@ -74,5 +74,6 @@ "Countries: %count%": "Pays: %count%", "Regions: %count%": "Régions: %count%", "countryCount": "{n} pays | {n} pays | {n} pays", - "regionCount": "{n} régions | {n} région | {n} régions" + "regionCount": "{n} régions | {n} région | {n} régions", + "Coming soon — a prayer list will be generated for each country, naming every unengaged people group within it.": "Bientôt — une liste de prière sera générée pour chaque pays, nommant chaque groupe de population non atteint qui s'y trouve." } diff --git a/library/i18n/locales/hi/regions.json b/library/i18n/locales/hi/regions.json index 769094777..7817b86dd 100644 --- a/library/i18n/locales/hi/regions.json +++ b/library/i18n/locales/hi/regions.json @@ -74,5 +74,6 @@ "Countries: %count%": "देश: %count%", "Regions: %count%": "क्षेत्र: %count%", "countryCount": "{n} देश | {n} देश | {n} देश", - "regionCount": "{n} क्षेत्र | {n} क्षेत्र | {n} क्षेत्र" + "regionCount": "{n} क्षेत्र | {n} क्षेत्र | {n} क्षेत्र", + "Coming soon — a prayer list will be generated for each country, naming every unengaged people group within it.": "जल्द आ रहा है — हर देश के लिए एक प्रार्थना सूची बनाई जाएगी, जिसमें उसके भीतर के हर अछूते जनसमूह का नाम होगा।" } diff --git a/library/i18n/locales/it/regions.json b/library/i18n/locales/it/regions.json index d75a050cb..093221e69 100644 --- a/library/i18n/locales/it/regions.json +++ b/library/i18n/locales/it/regions.json @@ -74,5 +74,6 @@ "Countries: %count%": "Paesi: %count%", "Regions: %count%": "Regioni: %count%", "countryCount": "{n} paesi | {n} paese | {n} paesi", - "regionCount": "{n} regioni | {n} regione | {n} regioni" + "regionCount": "{n} regioni | {n} regione | {n} regioni", + "Coming soon — a prayer list will be generated for each country, naming every unengaged people group within it.": "Prossimamente — per ogni paese verrà generata una lista di preghiera, con il nome di ogni gruppo etnico non raggiunto al suo interno." } diff --git a/library/i18n/locales/pt/regions.json b/library/i18n/locales/pt/regions.json index 3d0001508..c9a3d05ca 100644 --- a/library/i18n/locales/pt/regions.json +++ b/library/i18n/locales/pt/regions.json @@ -74,5 +74,6 @@ "Countries: %count%": "Países: %count%", "Regions: %count%": "Regiões: %count%", "countryCount": "{n} países | {n} país | {n} países", - "regionCount": "{n} regiões | {n} região | {n} regiões" + "regionCount": "{n} regiões | {n} região | {n} regiões", + "Coming soon — a prayer list will be generated for each country, naming every unengaged people group within it.": "Em breve — será gerada uma lista de oração para cada país, nomeando cada grupo étnico não alcançado nele." } diff --git a/library/i18n/locales/ro/regions.json b/library/i18n/locales/ro/regions.json index a4590efdc..3b30523d2 100644 --- a/library/i18n/locales/ro/regions.json +++ b/library/i18n/locales/ro/regions.json @@ -74,5 +74,6 @@ "Countries: %count%": "Țări: %count%", "Regions: %count%": "Regiuni: %count%", "countryCount": "o țară | {n} țări | {n} de țări", - "regionCount": "o regiune | {n} regiuni | {n} de regiuni" + "regionCount": "o regiune | {n} regiuni | {n} de regiuni", + "Coming soon — a prayer list will be generated for each country, naming every unengaged people group within it.": "În curând — pentru fiecare țară va fi generată o listă de rugăciune, numind fiecare grup etnic neatins din ea." } diff --git a/library/i18n/locales/ru/regions.json b/library/i18n/locales/ru/regions.json index 89cc5c0c5..03352cacb 100644 --- a/library/i18n/locales/ru/regions.json +++ b/library/i18n/locales/ru/regions.json @@ -74,5 +74,6 @@ "Countries: %count%": "Страны: %count%", "Regions: %count%": "Регионы: %count%", "countryCount": "{n} страна | {n} страны | {n} стран | {n} стран", - "regionCount": "{n} регион | {n} региона | {n} регионов | {n} регионов" + "regionCount": "{n} регион | {n} региона | {n} регионов | {n} регионов", + "Coming soon — a prayer list will be generated for each country, naming every unengaged people group within it.": "Скоро — для каждой страны будет создан список для молитвы с названием каждой неохваченной народности в ней." } diff --git a/library/i18n/locales/zh/regions.json b/library/i18n/locales/zh/regions.json index c9c71b300..9b7a8893d 100644 --- a/library/i18n/locales/zh/regions.json +++ b/library/i18n/locales/zh/regions.json @@ -74,5 +74,6 @@ "Countries: %count%": "国家:%count%", "Regions: %count%": "区域:%count%", "countryCount": "{n} 个国家", - "regionCount": "{n} 个地区" + "regionCount": "{n} 个地区", + "Coming soon — a prayer list will be generated for each country, naming every unengaged people group within it.": "即将推出——将为每个国家生成一份祷告清单,列出其中每一个未得之民。" } diff --git a/plugin-designs/regions-dashboard/regions-list.vue b/plugin-designs/regions-dashboard/regions-list.vue index 32dc1644f..3803b1ccc 100644 --- a/plugin-designs/regions-dashboard/regions-list.vue +++ b/plugin-designs/regions-dashboard/regions-list.vue @@ -525,8 +525,8 @@ useShadowStyles( :heading="''" :intro="''" unit="UPG" - item-noun="country" - item-noun-plural="countries" + :item-noun="t('Country')" + :item-noun-plural="t('Countries')" :collapsible="false" :embedded="true" :section-heads="false" @@ -535,7 +535,7 @@ useShadowStyles( :unsupported="posterUnsupported" download-prefix="doxa-country" poster-action="print" - prayer-list-soon-message="Coming soon — a prayer list will be generated for each country, naming every unengaged people group within it." + :prayer-list-soon-message="t('Coming soon — a prayer list will be generated for each country, naming every unengaged people group within it.')" />