#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 іншого столу / ходу
- 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.
