You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a translations is longer than it's english equivalent, it can break some Discord limitations.
For example, some Embeds fields have small maximum length, and a translation in french, which is longer than in English, can exceed this limit.
To Reproduce
The /sondage command in French raise an error.
Code suggestion
Add an optional argument to _() allowing specify a max_length like : _("Hello world", _max_length=100)
If a translation is longer than the provided length, the bot log a WARNING and return the stripper string.
The text was updated successfully, but these errors were encountered:
Describe the bug
When a translations is longer than it's english equivalent, it can break some Discord limitations.
For example, some Embeds fields have small maximum length, and a translation in french, which is longer than in English, can exceed this limit.
To Reproduce
The /sondage command in French raise an error.
Code suggestion
Add an optional argument to
_()
allowing specify a max_length like :_("Hello world", _max_length=100)
If a translation is longer than the provided length, the bot log a WARNING and return the stripper string.
The text was updated successfully, but these errors were encountered: