Jump to content

Translation bug


GunChleoc
 Share

Recommended Posts

I'm having a problem with the following string on the Gaelic translation:

gui/gamesetup/gamesetup.js:1231

%(number)s players. %(description)s

For 3 players, it fetches the wrong plural form - either the one for 1,11 or the one for 2,12

We have had problems with some software defining the wrong plural rules for gd, could you please double-check this?

nplurals=4; plural=(n==1 || n==11) ? 0 : (n==2 || n==12) ? 1 : (n > 2 && n < 20) ? 2 : 3;
  • Like 1
Link to comment
Share on other sites

The number displayes on screen is correct, but the plural form is not. I had already double-checked the PO file to make sure it's not a translation error.

http://svn.wildfiregames.com/public/ps/trunk/binaries/data/mods/public/gui/gamesetup/gamesetup.js

    var playerString = sprintf(translatePlural("%(number)s player. %(description)s", "%(number)s players. %(description)s", numPlayers), { number: numPlayers, description: description });

This is the line in current trunk, I have no idea if changes have been made since the release was packaged or not. I simply quoted the code reference in the PO file ;)

This line of code looks correct as far as I can tell, so no idea what is wrong here.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...