Country Posters: the India section's header counts its states and union territories, not "countries"
The India section's cards are India itself, its 34 state and union territory posters and the two with none listed, so "· 37 countries" was untrue. Through PosterWall's sectionItemCountKey, that section alone counts its state cards (36, from the data) with countryPosters.indiaItemCount; every other section keeps the countries count. The key in all 11 locales, in each locale's own plural forms (the same form counts as regions.countryCount).
This commit is contained in:
parent
f3851da57c
commit
9de5da9e4a
12 changed files with 28 additions and 11 deletions
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"indiaNote": "للهند قسمها الخاص في المقدّمة: عدد الشعوب غير المُبشَّرة فيها {count}، وهو أكثر بكثير من أي بلد آخر، لذا لكل ولاية وإقليم اتحادي فيها ملصقه الخاص.",
|
||||
"indiaStateNoGroups": "لا توجد هنا شعوب غير مُبشَّرة مُدرَجة."
|
||||
"indiaStateNoGroups": "لا توجد هنا شعوب غير مُبشَّرة مُدرَجة.",
|
||||
"indiaItemCount": "لا ولايات ولا أقاليم | ولاية أو إقليم اتحادي واحد | ولايتان أو إقليمان | {n} ولايات وأقاليم اتحادية | {n} ولاية وإقليمًا اتحاديًا | {n} ولاية وإقليم اتحادي"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"indiaNote": "भारत का अपना अलग खंड है, सबसे पहले: इसमें {count} अपहुँचे जनसमूह हैं, किसी भी अन्य देश से कहीं अधिक, इसलिए इसके हर राज्य और केंद्र शासित प्रदेश का अपना पोस्टर है।",
|
||||
"indiaStateNoGroups": "यहाँ कोई अपहुँचा जनसमूह सूचीबद्ध नहीं है।"
|
||||
"indiaStateNoGroups": "यहाँ कोई अपहुँचा जनसमूह सूचीबद्ध नहीं है।",
|
||||
"indiaItemCount": "{n} राज्य या केंद्र शासित प्रदेश | {n} राज्य और केंद्र शासित प्रदेश"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"indiaNote": "У Индии свой раздел, первый: число недостигнутых народов в ней — {count}, намного больше, чем в любой другой стране, поэтому у каждого её штата и союзной территории есть свой плакат.",
|
||||
"indiaStateNoGroups": "Здесь не указано ни одного недостигнутого народа."
|
||||
"indiaStateNoGroups": "Здесь не указано ни одного недостигнутого народа.",
|
||||
"indiaItemCount": "{n} штат или союзная территория | {n} штата и союзные территории | {n} штатов и союзных территорий | {n} штата и союзной территории"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"indiaNote": "印度有单独的一栏,排在最前:这里有 {count} 个未得之民族群,远多于任何其他国家,因此它的每个邦和中央直辖区都有自己的海报。",
|
||||
"indiaStateNoGroups": "此处未列出任何未得之民族群。"
|
||||
"indiaStateNoGroups": "此处未列出任何未得之民族群。",
|
||||
"indiaItemCount": "{n} 个邦和中央直辖区"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue