#17100: "The ordinal suffix for a ranking is wrong ("th") in some cases"
What is this report about?
What happened? Please select from below
What happened? Please select from below
Please check if there is already a report on the same subject
If yes, please VOTE for this report. Reports with the most votes are given PRIORITY!
| # | Status | Votes | Game | Type | Title | Last update |
|---|
Detailed description
-
• Please copy/paste the error message you see on your screen, if applicable.
"21th", "22th", "23th", etc
-
• Please explain what you wanted to do, what you did and what happened
When displaying a player's ranking in a game, in English, BGA uses "th" for the ordinal suffix except for 1, 2, 3 place; but in fact instead of "21th", "22th", "23th" it should be "21st", "22nd", "23rd". See blahedo.org/bga/ranking-21th.png for a sample (though this seems to show up anywhere someone's ranking is displayed).
• Which browser are you using?
Firefox 75 / Linux
-
• Please copy/paste the text displayed in English instead of your language. If you have a screenshot of this bug (good practice), you can use Imgur.com to upload it and copy/paste the link here.
"21th", "22th", "23th", etc
-
• Is this text available in the translation system? If yes, has it been translated for more than 24 hours?
When displaying a player's ranking in a game, in English, BGA uses "th" for the ordinal suffix except for 1, 2, 3 place; but in fact instead of "21th", "22th", "23th" it should be "21st", "22nd", "23rd". See blahedo.org/bga/ranking-21th.png for a sample (though this seems to show up anywhere someone's ranking is displayed).
• Which browser are you using?
Firefox 75 / Linux
-
• Please explain your suggestion precisely and concisely so that it's as easy as possible to understand what you mean.
"21th", "22th", "23th", etc
• Which browser are you using?
Firefox 75 / Linux
-
• What was displayed on the screen when you were blocked (Blank screen? Part of the game interface? Error message?)
"21th", "22th", "23th", etc
• Which browser are you using?
Firefox 75 / Linux
-
• Which part of the rules was not followed by the BGA adaptation?
"21th", "22th", "23th", etc
-
• Is the rules violation visible on game replay? If yes, at which move number?
When displaying a player's ranking in a game, in English, BGA uses "th" for the ordinal suffix except for 1, 2, 3 place; but in fact instead of "21th", "22th", "23th" it should be "21st", "22nd", "23rd". See blahedo.org/bga/ranking-21th.png for a sample (though this seems to show up anywhere someone's ranking is displayed).
• Which browser are you using?
Firefox 75 / Linux
-
• What was the game action you wanted to do?
"21th", "22th", "23th", etc
-
• What did you try to do to trigger this game action?
When displaying a player's ranking in a game, in English, BGA uses "th" for the ordinal suffix except for 1, 2, 3 place; but in fact instead of "21th", "22th", "23th" it should be "21st", "22nd", "23rd". See blahedo.org/bga/ranking-21th.png for a sample (though this seems to show up anywhere someone's ranking is displayed).
-
• What happened when you tried to do this (error message, game status bar message, ...)?
• Which browser are you using?
Firefox 75 / Linux
-
• At which step of the game did the problem occur? What was the current game instruction?
"21th", "22th", "23th", etc
-
• What happened when you tried to do this game action (error message, game status bar message, ...)?
When displaying a player's ranking in a game, in English, BGA uses "th" for the ordinal suffix except for 1, 2, 3 place; but in fact instead of "21th", "22th", "23th" it should be "21st", "22nd", "23rd". See blahedo.org/bga/ranking-21th.png for a sample (though this seems to show up anywhere someone's ranking is displayed).
• Which browser are you using?
Firefox 75 / Linux
-
• Please describe the display issue. If you have a screenshot of this bug (good practice), you can use Imgur.com to upload it and copy/paste the link here.
"21th", "22th", "23th", etc
• Which browser are you using?
Firefox 75 / Linux
-
• Please copy/paste the text displayed in English instead of your language. If you have a screenshot of this bug (good practice), you can use Imgur.com to upload it and copy/paste the link here.
"21th", "22th", "23th", etc
-
• Is this text available in the translation system? If yes, has it been translated for more than 24 hours?
When displaying a player's ranking in a game, in English, BGA uses "th" for the ordinal suffix except for 1, 2, 3 place; but in fact instead of "21th", "22th", "23th" it should be "21st", "22nd", "23rd". See blahedo.org/bga/ranking-21th.png for a sample (though this seems to show up anywhere someone's ranking is displayed).
• Which browser are you using?
Firefox 75 / Linux
-
• Please explain your suggestion precisely and concisely so that it's as easy as possible to understand what you mean.
"21th", "22th", "23th", etc
• Which browser are you using?
Firefox 75 / Linux
Report history
It is wrong on all the competition screens (it is ok for 1st, 2nd & 3rd) but as inital report says just needs to be fixed for 21th, 22th, 23th, 31th, 32th, 33th etc..
As pointed out by The Luggage, there are lots of other places where it has not been fixed though.
IF Rank % 10 = 1 THEN st
IF Rank % 10 = 2 THEN nd
IF Rank % 10 = 3 THEN rd
ELSE th
static String getEnglishOrdinalSuffix(int rank) {
final String[] suffixes = { "st", "nd", "rd" };
assert rank > 0;
if (((rank / 10) % 10) != 1) {
int ones = (rank - 1) % 10;
if (ones < suffixes.length) {
return suffixes[ones];
}
}
return "th";
}
It’s a nice problem to have (being in the top 100 of a game) but the polish is a little tarnished by the incorrect display.
If language is a barrier for proper suffixes, just remove them all together.
"Your rank is 72."
Add to this report
- Another table ID / move ID
- Did F5 solve the problem?
- Did the problem appear several times? Every time? Randomly?
- If you have a screenshot of this bug (good practice), you can use Imgur.com to upload it and copy/paste the link here.
