diff --git a/library/i18n/locales/ar/countryPosters.json b/library/i18n/locales/ar/countryPosters.json index 1086b857b..425618c10 100644 --- a/library/i18n/locales/ar/countryPosters.json +++ b/library/i18n/locales/ar/countryPosters.json @@ -1,4 +1,5 @@ { "indiaNote": "للهند قسمها الخاص في المقدّمة: عدد الشعوب غير المُبشَّرة فيها {count}، وهو أكثر بكثير من أي بلد آخر، لذا لكل ولاية وإقليم اتحادي فيها ملصقه الخاص.", - "indiaStateNoGroups": "لا توجد هنا شعوب غير مُبشَّرة مُدرَجة." + "indiaStateNoGroups": "لا توجد هنا شعوب غير مُبشَّرة مُدرَجة.", + "indiaItemCount": "لا ولايات ولا أقاليم | ولاية أو إقليم اتحادي واحد | ولايتان أو إقليمان | {n} ولايات وأقاليم اتحادية | {n} ولاية وإقليمًا اتحاديًا | {n} ولاية وإقليم اتحادي" } diff --git a/library/i18n/locales/de/countryPosters.json b/library/i18n/locales/de/countryPosters.json index a5eed51c3..66822bd88 100644 --- a/library/i18n/locales/de/countryPosters.json +++ b/library/i18n/locales/de/countryPosters.json @@ -1,4 +1,5 @@ { "indiaNote": "Indien hat einen eigenen Abschnitt, ganz oben: Mit {count} unerreichten Volksgruppen, weit mehr als jedes andere Land, hat jeder seiner Bundesstaaten und Unionsterritorien ein eigenes Plakat.", - "indiaStateNoGroups": "Hier sind keine unerreichten Volksgruppen verzeichnet." + "indiaStateNoGroups": "Hier sind keine unerreichten Volksgruppen verzeichnet.", + "indiaItemCount": "{n} Bundesstaat oder Unionsterritorium | {n} Bundesstaaten und Unionsterritorien" } diff --git a/library/i18n/locales/en/countryPosters.json b/library/i18n/locales/en/countryPosters.json index ba2081796..acf3da70a 100644 --- a/library/i18n/locales/en/countryPosters.json +++ b/library/i18n/locales/en/countryPosters.json @@ -1,4 +1,5 @@ { "indiaNote": "India has its own section, first: it has {count} unreached people groups, far more than any other country, so each of its states and union territories has its own poster.", - "indiaStateNoGroups": "No unreached people groups are listed here." + "indiaStateNoGroups": "No unreached people groups are listed here.", + "indiaItemCount": "{n} states and union territories | {n} state or union territory | {n} states and union territories" } diff --git a/library/i18n/locales/es/countryPosters.json b/library/i18n/locales/es/countryPosters.json index 9fc421497..793861c75 100644 --- a/library/i18n/locales/es/countryPosters.json +++ b/library/i18n/locales/es/countryPosters.json @@ -1,4 +1,5 @@ { "indiaNote": "India tiene su propia sección, la primera: tiene {count} pueblos no alcanzados, muchos más que cualquier otro país, así que cada uno de sus estados y territorios de la unión tiene su propio cartel.", - "indiaStateNoGroups": "Aquí no figura ningún pueblo no alcanzado." + "indiaStateNoGroups": "Aquí no figura ningún pueblo no alcanzado.", + "indiaItemCount": "{n} estado o territorio de la unión | {n} de estados y territorios de la unión | {n} estados y territorios de la unión" } diff --git a/library/i18n/locales/fr/countryPosters.json b/library/i18n/locales/fr/countryPosters.json index 3276818fe..e03e089ca 100644 --- a/library/i18n/locales/fr/countryPosters.json +++ b/library/i18n/locales/fr/countryPosters.json @@ -1,4 +1,5 @@ { "indiaNote": "L’Inde a sa propre section, en premier : elle compte {count} peuples non atteints, bien plus que tout autre pays ; chacun de ses États et territoires de l’Union a donc sa propre affiche.", - "indiaStateNoGroups": "Aucun peuple non atteint n’est répertorié ici." + "indiaStateNoGroups": "Aucun peuple non atteint n’est répertorié ici.", + "indiaItemCount": "{n} État ou territoire de l’Union | {n} d’États et territoires de l’Union | {n} États et territoires de l’Union" } diff --git a/library/i18n/locales/hi/countryPosters.json b/library/i18n/locales/hi/countryPosters.json index 97887f971..baa73d419 100644 --- a/library/i18n/locales/hi/countryPosters.json +++ b/library/i18n/locales/hi/countryPosters.json @@ -1,4 +1,5 @@ { "indiaNote": "भारत का अपना अलग खंड है, सबसे पहले: इसमें {count} अपहुँचे जनसमूह हैं, किसी भी अन्य देश से कहीं अधिक, इसलिए इसके हर राज्य और केंद्र शासित प्रदेश का अपना पोस्टर है।", - "indiaStateNoGroups": "यहाँ कोई अपहुँचा जनसमूह सूचीबद्ध नहीं है।" + "indiaStateNoGroups": "यहाँ कोई अपहुँचा जनसमूह सूचीबद्ध नहीं है।", + "indiaItemCount": "{n} राज्य या केंद्र शासित प्रदेश | {n} राज्य और केंद्र शासित प्रदेश" } diff --git a/library/i18n/locales/it/countryPosters.json b/library/i18n/locales/it/countryPosters.json index b646d2312..a21b06082 100644 --- a/library/i18n/locales/it/countryPosters.json +++ b/library/i18n/locales/it/countryPosters.json @@ -1,4 +1,5 @@ { "indiaNote": "L’India ha una sezione tutta sua, la prima: conta {count} popoli non raggiunti, molti più di qualsiasi altro paese, quindi ognuno dei suoi stati e territori dell’Unione ha il proprio manifesto.", - "indiaStateNoGroups": "Qui non è elencato alcun popolo non raggiunto." + "indiaStateNoGroups": "Qui non è elencato alcun popolo non raggiunto.", + "indiaItemCount": "{n} stato o territorio dell’Unione | {n} di stati e territori dell’Unione | {n} stati e territori dell’Unione" } diff --git a/library/i18n/locales/pt/countryPosters.json b/library/i18n/locales/pt/countryPosters.json index 18dcdfe85..e43b71685 100644 --- a/library/i18n/locales/pt/countryPosters.json +++ b/library/i18n/locales/pt/countryPosters.json @@ -1,4 +1,5 @@ { "indiaNote": "A Índia tem a sua própria seção, a primeira: tem {count} povos não alcançados, muito mais do que qualquer outro país, por isso cada um dos seus estados e territórios da união tem o seu próprio cartaz.", - "indiaStateNoGroups": "Nenhum povo não alcançado está listado aqui." + "indiaStateNoGroups": "Nenhum povo não alcançado está listado aqui.", + "indiaItemCount": "{n} estado ou território da união | {n} de estados e territórios da união | {n} estados e territórios da união" } diff --git a/library/i18n/locales/ro/countryPosters.json b/library/i18n/locales/ro/countryPosters.json index 8ca748da6..5ccf50fe2 100644 --- a/library/i18n/locales/ro/countryPosters.json +++ b/library/i18n/locales/ro/countryPosters.json @@ -1,4 +1,5 @@ { "indiaNote": "India are propria secțiune, prima: are {count} popoare neatinse, mult mai multe decât orice altă țară, așa că fiecare dintre statele și teritoriile sale ale Uniunii are propriul afiș.", - "indiaStateNoGroups": "Aici nu este listat niciun popor neatins." + "indiaStateNoGroups": "Aici nu este listat niciun popor neatins.", + "indiaItemCount": "un stat sau teritoriu al Uniunii | {n} state și teritorii ale Uniunii | {n} de state și teritorii ale Uniunii" } diff --git a/library/i18n/locales/ru/countryPosters.json b/library/i18n/locales/ru/countryPosters.json index b3963aec2..7ff8cb749 100644 --- a/library/i18n/locales/ru/countryPosters.json +++ b/library/i18n/locales/ru/countryPosters.json @@ -1,4 +1,5 @@ { "indiaNote": "У Индии свой раздел, первый: число недостигнутых народов в ней — {count}, намного больше, чем в любой другой стране, поэтому у каждого её штата и союзной территории есть свой плакат.", - "indiaStateNoGroups": "Здесь не указано ни одного недостигнутого народа." + "indiaStateNoGroups": "Здесь не указано ни одного недостигнутого народа.", + "indiaItemCount": "{n} штат или союзная территория | {n} штата и союзные территории | {n} штатов и союзных территорий | {n} штата и союзной территории" } diff --git a/library/i18n/locales/zh/countryPosters.json b/library/i18n/locales/zh/countryPosters.json index 9b423e8e9..5572a850d 100644 --- a/library/i18n/locales/zh/countryPosters.json +++ b/library/i18n/locales/zh/countryPosters.json @@ -1,4 +1,5 @@ { "indiaNote": "印度有单独的一栏,排在最前:这里有 {count} 个未得之民族群,远多于任何其他国家,因此它的每个邦和中央直辖区都有自己的海报。", - "indiaStateNoGroups": "此处未列出任何未得之民族群。" + "indiaStateNoGroups": "此处未列出任何未得之民族群。", + "indiaItemCount": "{n} 个邦和中央直辖区" } diff --git a/plugin-designs/country-posters/country-poster-wall.vue b/plugin-designs/country-posters/country-poster-wall.vue index 121d0acdc..3098734cb 100644 --- a/plugin-designs/country-posters/country-poster-wall.vue +++ b/plugin-designs/country-posters/country-poster-wall.vue @@ -198,6 +198,11 @@ const wallLang = () => { const l = wallLocale && (wallLocale.value ?? wallLocale const indiaHeading = () => (/^en\b/i.test(wallLang()) ? 'India' : countryName('IND', wallLang()) || 'India') const isIndia = (c) => c.indiaState || String(c.iso3 || '').toUpperCase() === 'IND' const INDIA_COUNT = (byIso3.get('IND') || {}).count || 0 +// The India section's item count names what its cards are (states and union territories, not countries): it counts +// the state cards only, India's own card being the country itself. Every other section keeps the countries count. +const sectionItemCountKey = (sec) => (sec.items.some(isIndia) + ? { key: 'countryPosters.indiaItemCount', n: sec.items.filter((c) => c.indiaState).length } + : null) const sectionTotal = (name, items) => (items.some(isIndia) && INDIA_COUNT ? INDIA_COUNT : items.reduce((n, x) => n + (x.count || 0), 0)) const groupBy = (c) => { if (isIndia(c)) return indiaHeading() @@ -253,6 +258,7 @@ const soonMessage = computed(() => t('messages.countryWallSoon')) :collapsible="!filtered" :collapsed-by="filtered ? neverCollapsed : collapsedBy" :section-total="filtered ? null : sectionTotal" + :section-item-count-key="filtered ? null : sectionItemCountKey" :section-heads="!filtered" :embedded="filtered" :columns="filtered ? hostColumns : 0"