Skip to content

Commit

Permalink
Add missing .arg() when there are no more content citizens
Browse files Browse the repository at this point in the history
Also pluralize the sentence.
  • Loading branch information
lmoureaux authored and jwrober committed Jan 20, 2024
1 parent 9e1606e commit 0b87ba5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,10 @@ QString text_happiness_cities_apply_rules(int cities, int max_content)
.arg(cities)
.arg(max_content);
} else if (max_content == 0) {
return _("You have %1 cities, thus all citizens are unhappy.");
return QString(PL_("You have %1 city, thus all citizens are unhappy.",
"You have %1 cities, thus all citizens are unhappy.",
cities))
.arg(cities);
} else {
// TRANS: Pluralized in "%2 angry citizens"
return QString(PL_("You have %1 cities, resulting in a maximum of "
Expand Down

0 comments on commit 0b87ba5

Please sign in to comment.