Skip to content

Commit

Permalink
Fix plural format specifier in translatable string
Browse files Browse the repository at this point in the history
Mismatching format specifiers could result in broken PO files, because
gettext always compares the format specifiers of each msgstr array entry
to those of the msgid_plural field when generating message catalogs.

Fixes ticket:4872
  • Loading branch information
Forgon2100 committed Mar 24, 2019
1 parent 135b076 commit db95329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structure.cpp
Expand Up @@ -5444,7 +5444,7 @@ void printStructureInfo(STRUCTURE *psStructure)
&& psStructure->pStructureType->pSensor->location == LOC_TURRET)
{
unsigned int assigned_droids = countAssignedDroids(psStructure);
console(ngettext("%s - %u Unit assigned - Damage %3.0f%%", "%s - %u Units assigned - Hitpoints %d/%d", assigned_droids),
console(ngettext("%s - %u Unit assigned - Damage %d/%d", "%s - %u Units assigned - Hitpoints %d/%d", assigned_droids),
getName(psStructure->pStructureType), assigned_droids, psStructure->body, structureBody(psStructure));
}
else
Expand Down

0 comments on commit db95329

Please sign in to comment.