#17100: "The ordinal suffix for a ranking is wrong ("th") in some cases"
Vad handlar denna rapport om?
Vad hände? Välj från alternativen nedan
Vad hände? Välj från alternativen nedan
Vänligen kontrollera om det redan finns en rapport om samma ämne
Om detta stämmer, RÖSTA på denna rapport. Rapporterna med flest röster har PRIORITET!
| # | Status | Votes | Game | Type | Title | Last update |
|---|
Detaljerad beskrivning
-
• Var vänlig klipp och klistra in felmeddelandet du ser på skärmen, om något.
"21th", "22th", "23th", etc
-
• Varsågod och förklara vad du ville göra, vad du gjorde och vad som hände
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).
• Vad har du för webbläsare?
Firefox 75 / Linux
-
• Var vänlig kopiera/klistra in texten på engelska istället för ditt eget språk. If you have a screenshot of this bug (good practice), you can use a picture hosting service of your choice (snipboard.io for example) to upload it and copy/paste the link here. Är denna text tillgänglig i översättningssystemet? I så fall, var det mer än 24 timmar sedan den översattes?
"21th", "22th", "23th", etc
• Vad har du för webbläsare?
Firefox 75 / Linux
-
• Vänligen förklara ditt förslag exakt och koncist så att det är så enkelt som möjligt att förstå vad du menar.
"21th", "22th", "23th", etc
• Vad har du för webbläsare?
Firefox 75 / Linux
-
• Vad visades på skärmen när du blockerades (Blank skärm? Del av spelets användargränssnitt? Felmeddelande?)?
"21th", "22th", "23th", etc
• Vad har du för webbläsare?
Firefox 75 / Linux
-
• Vilken del av reglerna respekterades inte av BGA-adaptionen?
"21th", "22th", "23th", etc
-
• Är regelbrottet synligt i återuppspelning? Om ja, vilket nummer är det på draget?
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).
• Vad har du för webbläsare?
Firefox 75 / Linux
-
• Vilken spelhandling ville du göra?
"21th", "22th", "23th", etc
-
• Vad försöker du göra för att sätta igång denna spelmekaniken?
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).
-
• Vad hände när du försökte göra det här (felmeddelande, meddelande i spelstatusrad, ...)?
• Vad har du för webbläsare?
Firefox 75 / Linux
-
• På vilket steg i spelet kom felet (vad var den aktuella instruktionen från spelet)?
"21th", "22th", "23th", etc
-
• Vad hände när du försökte utföra en spelhandling (felmeddelande, meddelande i spelstatusrad, ...)?
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).
• Vad har du för webbläsare?
Firefox 75 / Linux
-
• Vänligen beskriv visningsproblemet. If you have a screenshot of this bug (good practice), you can use a picture hosting service of your choice (snipboard.io for example) to upload it and copy/paste the link here.
"21th", "22th", "23th", etc
• Vad har du för webbläsare?
Firefox 75 / Linux
-
• Var vänlig kopiera/klistra in texten på engelska istället för ditt eget språk. If you have a screenshot of this bug (good practice), you can use a picture hosting service of your choice (snipboard.io for example) to upload it and copy/paste the link here. Är denna text tillgänglig i översättningssystemet? I så fall, var det mer än 24 timmar sedan den översattes?
"21th", "22th", "23th", etc
• Vad har du för webbläsare?
Firefox 75 / Linux
-
• Vänligen förklara ditt förslag exakt och koncist så att det är så enkelt som möjligt att förstå vad du menar.
"21th", "22th", "23th", etc
• Vad har du för webbläsare?
Firefox 75 / Linux
Rapporthistorik
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."
Lägg till något till denna rapport
- Ett annat spelbords-ID / drag-ID
- Löste F5 problemet?
- Uppträdde problemet flera gånger? Varje gång? Slumpmässigt?
- If you have a screenshot of this bug (good practice), you can use a picture hosting service of your choice (snipboard.io for example) to upload it and copy/paste the link here.
