mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
[i18n] Use redgettext over pygettext (#2023)
* [i18n] Use redgettext over pygettext * Clear out autogenerated `messages.pot` files * Remove redundant `regen_messages.py` files * Refactor `generate_strings.py` to use redgettext * Install redgettext in Travis Crowdin job * Clean up some problematic usages of gettext function * Reformat * Replace generate_strings.py with Makefile argument * Update to redgettext 2.1, use exclusion pattern Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
@@ -1,117 +0,0 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR ORGANIZATION
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2018-02-25 17:26+AKST\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: ENCODING\n"
|
||||
"Generated-By: pygettext.py 1.5\n"
|
||||
|
||||
|
||||
#: ../helpers.py:62
|
||||
msgid "I could not find a command from that input!"
|
||||
msgstr ""
|
||||
|
||||
#: ../helpers.py:67
|
||||
msgid "That command requires bot owner. I can't allow you to use that for an action"
|
||||
msgstr ""
|
||||
|
||||
#: ../helpers.py:76
|
||||
msgid ""
|
||||
"Enter the command to be run when the user exceeds the points for this action to occur.\n"
|
||||
"Enter it exactly as you would if you were actually trying to run the command, except don't put a prefix and use {user} in place of any user/member arguments\n"
|
||||
"\n"
|
||||
"WARNING: The command entered will be run without regard to checks or cooldowns. Commands requiring bot owner are not allowed for security reasons.\n"
|
||||
"\n"
|
||||
"Please wait 15 seconds before entering your response."
|
||||
msgstr ""
|
||||
|
||||
#: ../helpers.py:86 ../helpers.py:126
|
||||
msgid "You may enter your response now."
|
||||
msgstr ""
|
||||
|
||||
#: ../helpers.py:94 ../helpers.py:134
|
||||
msgid "Ok then."
|
||||
msgstr ""
|
||||
|
||||
#: ../helpers.py:114
|
||||
msgid ""
|
||||
"Enter the command to be run when the user returns to a value below the points for this action to occur. Please note that this is intended to be used for reversal of the action taken when the user exceeded the action's point value\n"
|
||||
"Enter it exactly as you would if you were actually trying to run the command, except don't put a prefix and use {user} in place of any user/member arguments\n"
|
||||
"\n"
|
||||
"WARNING: The command entered will be run without regard to checks or cooldowns. Commands requiring bot owner are not allowed for security reasons.\n"
|
||||
"\n"
|
||||
"Please wait 15 seconds before entering your response."
|
||||
msgstr ""
|
||||
|
||||
#: ../warnings.py:66
|
||||
msgid "Custom reasons have been {}"
|
||||
msgstr ""
|
||||
|
||||
#: ../warnings.py:66
|
||||
msgid "disabled"
|
||||
msgstr ""
|
||||
|
||||
#: ../warnings.py:66
|
||||
msgid "enabled"
|
||||
msgstr ""
|
||||
|
||||
#: ../warnings.py:92 ../warnings.py:351 ../warnings.py:368
|
||||
msgid "Ok then"
|
||||
msgstr ""
|
||||
|
||||
#: ../warnings.py:117
|
||||
msgid "Duplicate action name found!"
|
||||
msgstr ""
|
||||
|
||||
#: ../warnings.py:171
|
||||
msgid "That reason has been registered"
|
||||
msgstr ""
|
||||
|
||||
#: ../warnings.py:181
|
||||
msgid "Removed reason {}"
|
||||
msgstr ""
|
||||
|
||||
#: ../warnings.py:183
|
||||
msgid "That is not a registered reason name"
|
||||
msgstr ""
|
||||
|
||||
#: ../warnings.py:230
|
||||
msgid "Custom reasons are not allowed! Please see {} for a complete list of valid reasons"
|
||||
msgstr ""
|
||||
|
||||
#: ../warnings.py:243
|
||||
msgid "That is not a registered reason!"
|
||||
msgstr ""
|
||||
|
||||
#: ../warnings.py:277
|
||||
msgid "You are not allowed to check warnings for other users!"
|
||||
msgstr ""
|
||||
|
||||
#: ../warnings.py:290
|
||||
msgid "That user has no warnings!"
|
||||
msgstr ""
|
||||
|
||||
#: ../warnings.py:347
|
||||
msgid "How many points should be given for this reason?"
|
||||
msgstr ""
|
||||
|
||||
#: ../warnings.py:356
|
||||
msgid "That isn't a number!"
|
||||
msgstr ""
|
||||
|
||||
#: ../warnings.py:360
|
||||
msgid "The point value needs to be greater than 0!"
|
||||
msgstr ""
|
||||
|
||||
#: ../warnings.py:364
|
||||
msgid "Enter a description for this reason"
|
||||
msgstr ""
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
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