-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to translate achievements #578
base: beta
Are you sure you want to change the base?
Conversation
Now I also added the needed strings. |
Hi there, thanks for your pull request! Translatable achievements have been an open question for years now (see #89), so it's nice that you made those!
This may be a problem: If a group has, for example, superamnesia mode set, players would probably get an empty achievement message and not even know what they achieved. So always using the player language might be better, so that players can decide in which language they would like to get the messages. The translation will also ruin the "comparability" a bit: If you get an Achievement in Russian, the message won't be understandable to anyone who doesn't speak it, so you can't "show off" the message to other language speakers anymore. A solution could be to translate the achievement's descriptions but not the names. What I don't really like about your approach is the way you made the string keys: Why don't you use the name of the Looking forward to your answers! :) |
I decided to use the group language because I know that many players don't know about the
I hadn't thought of this problem, but another solution could be a command within the bot to display the unlocked achievements instead of the website.
Yes, it actually makes more sense |
Sorry for the trouble, I made a terrible mistake copying from the wrong file (from the one I used to quickly try that thing without compiling the entire bot) |
Strings needed:
AchUnlocked
("Achievement Unlocked!")MoreAchUnlocked
("New Unlocks!")Achievement[ID]Name
andAchievement[ID]Descr
Known issues:
It's needed to write achievement name/description both in
English.xml
file and in bot code (required for website).Note:
The fact that the group language is used for achievements sent during or at the end of a game is intentional.