[i18n/Streams] Change strings mentioning commands to use {command} variable #3938
No reviewers
Labels
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot!3938
Loading…
Reference in a new issue
No description provided.
Delete branch "V3/develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Description of the changes
Changing all strings that mention a command to use the {command} variable and a .format method to put the command in place. This prevents commands from being translated by crowdin volunteers.
This does things mentioned in #3919 (but doesn't close)
Can you please ... do cogs individually if its not asking too much, makes conflict and review easier as it breaks it up.
Good point
@jack1142 @Kowlin , @Drapersniper and me were wondering if I can just format the docstrings like that or if that would break something...
No, you can't. Docstring must be a literal string. If you really need to, you could use
format_text_for_contextbut ehh I don't think the added complexity is worth it.Edit: just to be clear, this is surely not the only solution, but I can't think of any that would be very simple while keeping i18n support properly.
Copy, i'll revert that in a bit then
I am dumb
I wonder, wouldn't it actually make sense to translate
<your_client_id_here>? It's probably not worth the additional trouble but I want to at least mention this 😛I mean could just simplify by saying
<client_id>but i can see people running the command like this and not replacing their client id... but yeah thats a good point thanslating that does make senseWould you put that as a seperate string then? Otherwise the start message will be pretty fucked up in crowdin
No, keep it all as one string as that would make more sense, Crowdin marks stuff in
{ }and alikes to not be translated by the translators. And will alert them of such.Something like this would probably make most sense if we were to do so
Yeah, so as I suggested. Not sure what you mean kowlin
That's not quite what I meant @Kowlin - I mean that
<your_client_id_here>part of the shown example would make some sense to actually be translated, see the example above.Could you join these strings? Black doesn't do it automagically right now.
Could you join these strings? Black doesn't do it automagically right now.
@ -461,1 +460,3 @@).format(prefix=ctx.clean_prefix)).format(command="`{}set api twitch client_id {} client_secret {}`".format(ctx.clean_prefix, _("<your_client_id_here>"), _("<your_client_secret_here>")You missed this one
Also needs conflict resolution
Sorry, I only just saw this. Will take care of it tomorrow or on Sunday.
I think I solved this correctly (TM)
@Dav-Git Well, excluding the style check that is 😛
... whenever I next get to a PC...
Aaaaaaaaaaaaaaaaaaaaaaaaaaaa
Blaaaaaaaaaaaaack fixed?
Yup 👍