Skip to content

Conversation

@johndoknjas
Copy link
Contributor

Closes #10988.

pov match
case Pov(game, color) if pov.player.isProposingTakeback =>
messenger.volatile(game, trans.site.takebackPropositionCanceled.txt())
messenger.volatile(game, pov.color.name.capitalize + ' ' + trans.site.cancelsTakeback.txt())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think you can glue i18n phrases together like this. you'll need to work the color into the strings as a %s

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@schlawg Good point, updated to use %s.

@superuser-does
Copy link
Collaborator

With regard to the i18n strings, it would be preferable if you had a unique string for each colour variation. This is because many languages have cases and I can foresee requests to split them out, based on past experience.

So e.g. instead of "%s declines takeback", make it two discrete strings of either "White declines takeback" or "Black declines takeback".

@schlawg
Copy link
Contributor

schlawg commented May 10, 2025

Do we want color or player names there though? I guess if it's always been color

@superuser-does
Copy link
Collaborator

Do we want color or player names there though? I guess if it's always been color

We would want colours/sides, which is what we do on other strings (e.g. on the profile activity feed)

One of the core problems of using names is that many languages have grammatical gender, so translators are forced into using a kludge like he/she, sometimes across multiple words.

The homepage feed is one of the few views where that's unavoidable. When it comes to chess games, we can use sides, bypassing the problem altogether.

@ornicar ornicar merged commit 8671129 into lichess-org:master May 14, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: support for viewing the user who requested a takeback

4 participants