mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 02:16:09 -05:00
[V3] Warning system (#1173)
* [V3 Warning] initial work on a warning system for v3 * [V3 Warning] rename some stuff and add a case type * [V3 Warnings] rename package from warning * [V3 Warnings] restructuring commands * [V3 Warnings] remove expiry stuff + other refactoring * [V3 Warnings] refactoring action logic * [V3 Warnings] rewrites to action logic * [V3 Warnings] add regen_messages.py
This commit is contained in:
16
redbot/cogs/warnings/locales/regen_messages.py
Normal file
16
redbot/cogs/warnings/locales/regen_messages.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import subprocess
|
||||
|
||||
TO_TRANSLATE = [
|
||||
'../warnings.py',
|
||||
'../helpers.py'
|
||||
]
|
||||
|
||||
|
||||
def regen_messages():
|
||||
subprocess.run(
|
||||
['pygettext', '-n'] + TO_TRANSLATE
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
regen_messages()
|
||||
Reference in New Issue
Block a user