Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tr.po #259

Closed
wants to merge 1 commit into from

Conversation

@vgezer
Copy link
Contributor

commented Mar 3, 2019

No description provided.

@past-due

This comment has been minimized.

Copy link
Contributor

commented Mar 3, 2019

Looks like a small error:

/usr/bin/msgfmt -c --statistics -o /code/build/po/locale/tr/LC_MESSAGES/warzone2100.mo /code/build/po/tr.po
/code/build/po/tr.po:12744: format specifications in 'msgid_plural' and 'msgstr[0]' for argument 3 are not the same
/usr/bin/msgfmt: found 1 fatal error
2883 translated messages.
@Forgon2100

This comment has been minimized.

Copy link
Contributor

commented Mar 24, 2019

Looks like a small error:

/usr/bin/msgfmt -c --statistics -o /code/build/po/locale/tr/LC_MESSAGES/warzone2100.mo /code/build/po/tr.po
/code/build/po/tr.po:12744: format specifications in 'msgid_plural' and 'msgstr[0]' for argument 3 are not the same
/usr/bin/msgfmt: found 1 fatal error
2883 translated messages.

The following message causes the problem:

# Gruplar! -Ayhan
#: src/structure.cpp:5447
#, c-format
msgid "%s - %u Unit assigned - Damage %3.0f%%"
msgid_plural "%s - %u Units assigned - Hitpoints %d/%d"
msgstr[0] "%s - %u Birim atandı - Hasar %%%3.0f"
msgstr[1] "%s - %u Birim atandı - Sağlık %d/%d"

Gettext compares all values in the msgstr array to the value of msgid_plural.
The reason is probably that pluralization differs much across languages, with
some languages like Japanese having no plural forms at all.

Ticket #4872 changed the source code so that we use the same format string
for both singular and plural forms, as we happen to do for any other message.

After adjusting vgezer's patch accordingly, I have accepted it.

@Forgon2100 Forgon2100 closed this Mar 24, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.