Cog-Creators / Cog-Creators/Red-DiscordBot
[Crowdin/i18n] Make every mention of a command in a string a variable so it can't be translated
Open
Category: Core - i18n
Status: Accepted
Status: PRs Welcome
Type: Enhancement
- Dominant language
- Python
- Stars
- 5.7k
- Forks
- 2.5k
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 1
Description
This is an enhancement.
Wherever a command is mentioned within a string, it should follow the following format
(_("I am a string with a {command}").format(command=f"{ctx.clean_prefix}somecommand"))
This will prevent translators from translating the command itself.
I shall PR this in a time not far in the future. (But I'm not so smart so I'll have to make this issue to remember)
Note to self: Copy the translation for the twitch api help first... That was a pain to translate.
Contributor guide
Assessment
This issue has not been assessed yet.