Skip to content

[T3624] Childpool: '1 child found' instead of '1 children found' - #448

Open
danpa32 wants to merge 1 commit into
18.0from
T3624-childpool-singular
Open

danpa32 wants to merge 1 commit into
18.0from
T3624-childpool-singular

Conversation

@danpa32

@danpa32 danpa32 commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

[T3624] Childpool: "1 child found" instead of "1 children found"

Problem

On the MyCompassion childpool (/my2/sponsorships), the number of results is always followed by the plural: "1 Kinder gefunden", "1 enfants trouvés", "1 bambini trovati", "1 children found".

Cause

The template has a single text after the number ("children found"); the script only updates the number.

Change

1 result otherwise
German Kind gefunden Kinder gefunden
French enfant trouvé enfants trouvés
Italian bambino trovato bambini trovati
Danish / Norwegian / Swedish barn fundet / barn funnet / barn hittades same
Finnish lapsi löytyi lasta löytyi
Polish znalezione dziecko znalezionych dzieci

Polish uses a third form for 2 to 4 ("znalezione dzieci"), not covered here.

Tests

Manual test on /my2/sponsorships: filtered down to a single child, the label reads "1 child found" / "1 Kind gefunden" / "1 enfant trouvé" / "1 bambino trovato", and the plural again with more children.

Deploy

-u my_compassion (template and translations).

The number of results was followed by the plural text whatever the count. The template now holds the singular text too, shown when there is exactly one result. Translations updated in every language of the module.
@danpa32
danpa32 requested a review from NoeBerdoz November 4, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant