GunChleoc Posted May 18, 2014 Report Share Posted May 18, 2014 I'm having a problem with the following string on the Gaelic translation: gui/gamesetup/gamesetup.js:1231%(number)s players. %(description)sFor 3 players, it fetches the wrong plural form - either the one for 1,11 or the one for 2,12We 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; 1 Quote Link to comment Share on other sites More sharing options...
sanderd17 Posted May 18, 2014 Report Share Posted May 18, 2014 The info in the PO is correct. So either tinyGetText is doing it wrong, or we pass the wrong number. Could you check if we pass the right number to tinyGetText in that gameSetup line you found? Quote Link to comment Share on other sites More sharing options...
GunChleoc Posted May 18, 2014 Author Report Share Posted May 18, 2014 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. Quote Link to comment Share on other sites More sharing options...
Gallaecio Posted May 19, 2014 Report Share Posted May 19, 2014 Please, open a report in Trac so we do not forget to look into it. Quote Link to comment Share on other sites More sharing options...
sanderd17 Posted May 19, 2014 Report Share Posted May 19, 2014 Also, would be nice if you could tell us how it's currently, and what is should be (my Gaelic isn't the best, so if we try to fix it, we must see if there's a good difference). Quote Link to comment Share on other sites More sharing options...
GunChleoc Posted May 20, 2014 Author Report Share Posted May 20, 2014 Done http://trac.wildfiregames.com/ticket/2575 Quote Link to comment Share on other sites More sharing options...
leper Posted May 20, 2014 Report Share Posted May 20, 2014 Fixed in r15179. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.