#17100: "The ordinal suffix for a ranking is wrong ("th") in some cases"
В какво се състои този доклад?
Какво се случи? Моля изберете от списъка по-долу
Какво се случи? Моля изберете от списъка по-долу
Моля, проверете дали вече има доклад по същия въпрос
Ако отговорът е „да“, моля, гласувайте за този доклад. Отчетите с най-много гласове са дадени ПРИОРИТЕТ!
| # | Status | Votes | Game | Type | Title | Last update |
|---|
Подробно описание
-
• Моля поставете тук съобщението за грешка което виждате, ако има такова
"21th", "22th", "23th", etc
-
• Моля обяснете, какво искахте да направите, какво направихте и какво се случи
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).
• Какъв е вашия браузър?
Firefox 75 / Linux
-
• Моля копирайте/поставете текстът показан на аглийски, вместо на Вашия език. 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. Наличен ли е този текст в системата за превод? Ако да, бил ли е преведен за повече от 24 часа?
"21th", "22th", "23th", etc
• Какъв е вашия браузър?
Firefox 75 / Linux
-
• Моля обяснете вашето придложение ясно и кратко така че да бъде възможно най-разбираемо.
"21th", "22th", "23th", etc
• Какъв е вашия браузър?
Firefox 75 / Linux
-
• Какво е било показано на екрана, когато сте били блокирани (празен екран? Част от интерфейса на играта? Съобщение за грешка?)
"21th", "22th", "23th", etc
• Какъв е вашия браузър?
Firefox 75 / Linux
-
• Коя част от правилата не е била спазена от BGA адаптацията
"21th", "22th", "23th", etc
-
• Нарушенията на правилата видими ли са при повторение на играта? Ако да, на кой ход се случват?
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).
• Какъв е вашия браузър?
Firefox 75 / Linux
-
• Какъв бе игровият ход, който се опитахте да извършите?
"21th", "22th", "23th", etc
-
• Какво се опитвате да направите, за да задействате тази игра?
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).
-
• Какво се случи, когато се опитахте да направите това (съобщение за грешка, съобщение за статуса на играта, ...)?
• Какъв е вашия браузър?
Firefox 75 / Linux
-
• В кой момент от играта се появи проблема (каква е била съответната инструкция в играта)?
"21th", "22th", "23th", etc
-
• Какво се случи, когато се опитахте да извършите действието в играта (съобщение за грешка, съобщение за статуса на играта, ...)?
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).
• Какъв е вашия браузър?
Firefox 75 / Linux
-
• Моля опишете грешката при изобразяването 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
• Какъв е вашия браузър?
Firefox 75 / Linux
-
• Моля копирайте/поставете текстът показан на аглийски, вместо на Вашия език. 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. Наличен ли е този текст в системата за превод? Ако да, бил ли е преведен за повече от 24 часа?
"21th", "22th", "23th", etc
• Какъв е вашия браузър?
Firefox 75 / Linux
-
• Моля обяснете вашето придложение ясно и кратко така че да бъде възможно най-разбираемо.
"21th", "22th", "23th", etc
• Какъв е вашия браузър?
Firefox 75 / Linux
История на докладванията
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."
Добави нещо към този доклад
- Друга маса ID / Ход ID
- F5 реши ли проблема?
- Проблемът няколко пъти ли се е появил? Или всеки път? Или абсолютно случайно?
- 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.
