Add recent pot file for crowdin to auto translate project

This commit is contained in:
Jeremy Zhang 2018-01-27 20:47:58 +00:00
parent 67375612ce
commit e09685b455
4 changed files with 208 additions and 5 deletions

1
.gitignore vendored
View File

@ -47,7 +47,6 @@ coverage.xml
# Translations # Translations
*.mo *.mo
*.pot
# Django stuff: # Django stuff:
*.log *.log

View File

@ -8,6 +8,9 @@ else:
if len(sys.argv) != 2: if len(sys.argv) != 2:
print("usage: tr_init <language-code>") print("usage: tr_init <language-code>")
sys.exit(1) sys.exit(1)
os.system(pybabel + ' extract -F babel.cfg -k lazy_gettext -o messages.pot titanembeds') try:
os.system(pybabel + ' init -i messages.pot -d titanembeds/translations -l ' + sys.argv[1]) os.unlink('titanembeds/translations/messages.pot')
os.unlink('messages.pot') except:
pass
os.system(pybabel + ' extract -F babel.cfg -k lazy_gettext -o titanembeds/translations/messages.pot titanembeds')
os.system(pybabel + ' init -i titanembeds/translations/messages.pot -d titanembeds/translations -l ' + sys.argv[1])

View File

@ -5,6 +5,6 @@ if sys.platform == 'win32':
pybabel = 'flask\\Scripts\\pybabel' pybabel = 'flask\\Scripts\\pybabel'
else: else:
pybabel = 'pybabel' pybabel = 'pybabel'
os.system(pybabel + ' extract -F babel.cfg -k lazy_gettext -o messages.pot titanembeds') os.system(pybabel + ' extract -F babel.cfg -k lazy_gettext -o titanembeds/translations/messages.pot titanembeds')
os.system(pybabel + ' update -i messages.pot -d titanembeds/translations') os.system(pybabel + ' update -i messages.pot -d titanembeds/translations')
os.unlink('messages.pot') os.unlink('messages.pot')

View File

@ -0,0 +1,201 @@
# Translations template for PROJECT.
# Copyright (C) 2018 ORGANIZATION
# This file is distributed under the same license as the PROJECT project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2018.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2018-01-27 20:46+0000\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=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.5.1\n"
#: titanembeds/blueprints/embed/embed.py:15
msgid "Let's get to know each other! My name is Titan, what's yours?"
msgstr ""
#: titanembeds/blueprints/embed/embed.py:16
msgid "Hello and welcome!"
msgstr ""
#: titanembeds/blueprints/embed/embed.py:17
msgid "What brings you here today?"
msgstr ""
#: titanembeds/blueprints/embed/embed.py:18
msgid "....what do you expect this text to say?"
msgstr ""
#: titanembeds/blueprints/embed/embed.py:19
msgid "Aha! ..made you look!"
msgstr ""
#: titanembeds/blueprints/embed/embed.py:20
msgid "Initiating launch sequence..."
msgstr ""
#: titanembeds/blueprints/embed/embed.py:21
msgid "Captain, what's your option?"
msgstr ""
#: titanembeds/blueprints/embed/embed.py:22
msgid "Alright, here's the usual~"
msgstr ""
#: titanembeds/templates/embed.html.j2:71
msgid "Actions"
msgstr ""
#: titanembeds/templates/embed.html.j2:72
msgid "Manage Guild Embed"
msgstr ""
#: titanembeds/templates/embed.html.j2:73
msgid "Open Server on Discordapp"
msgstr ""
#: titanembeds/templates/embed.html.j2:77
msgid "Channel Topic"
msgstr ""
#: titanembeds/templates/embed.html.j2:82
msgid "Channels"
msgstr ""
#: titanembeds/templates/embed.html.j2:87
msgid "Online Server Members"
msgstr ""
#: titanembeds/templates/embed.html.j2:92
msgid "Authenticated Embed Users"
msgstr ""
#: titanembeds/templates/embed.html.j2:95
msgid "Guest Embed Users"
msgstr ""
#: titanembeds/templates/embed.html.j2:115
msgid "Please choose one of the following methods to authenticate!"
msgstr ""
#: titanembeds/templates/embed.html.j2:121
msgid "Discord Login"
msgstr ""
#: titanembeds/templates/embed.html.j2:122
msgid "You will be invited into this server."
msgstr ""
#: titanembeds/templates/embed.html.j2:126
msgid ""
"Of course, you also have the option to login by picking a temporary "
"username for your current browsing session."
msgstr ""
#: titanembeds/templates/embed.html.j2:128
msgid "Username (Hit ENTER/RETURN key to confirm)"
msgstr ""
#: titanembeds/templates/embed.html.j2:140
msgid "Change Username"
msgstr ""
#: titanembeds/templates/embed.html.j2:143
msgid "Guests Accounts Only"
msgstr ""
#: titanembeds/templates/embed.html.j2:145
msgid "Change your username (Hit ENTER/RETURN key to confirm)"
msgstr ""
#: titanembeds/templates/embed.html.j2:149
msgid "Theme"
msgstr ""
#: titanembeds/templates/embed.html.j2:159
msgid "Overwrite Current Embed Theme w/ User CSS"
msgstr ""
#: titanembeds/templates/embed.html.j2:163
msgid "Notification Sound"
msgstr ""
#: titanembeds/templates/embed.html.j2:168
msgid "New Messages"
msgstr ""
#: titanembeds/templates/embed.html.j2:172
msgid "Mentions"
msgstr ""
#: titanembeds/templates/embed.html.j2:176
msgid "Nothing"
msgstr ""
#: titanembeds/templates/embed.html.j2:180
msgid "Display Rich Embeds"
msgstr ""
#: titanembeds/templates/embed.html.j2:185
msgid "Enable"
msgstr ""
#: titanembeds/templates/embed.html.j2:189
msgid "Disable"
msgstr ""
#: titanembeds/templates/embed.html.j2:201
msgid "Just one more step..."
msgstr ""
#: titanembeds/templates/embed.html.j2:213
msgid "Mention"
msgstr ""
#: titanembeds/templates/embed.html.j2:218
msgid "TitanEmbeds Administrator"
msgstr ""
#: titanembeds/templates/embed.html.j2:219
msgid "TitanEmbeds Partner"
msgstr ""
#: titanembeds/templates/embed.html.j2:220
msgid "TitanEmbeds Supporter"
msgstr ""
#: titanembeds/templates/embed.html.j2:221
msgid "GitHub Stargazer"
msgstr ""
#: titanembeds/templates/embed.html.j2:223
msgid "User is offline in Discord."
msgstr ""
#: titanembeds/templates/embed.html.j2:224
msgid "Playing"
msgstr ""
#: titanembeds/templates/embed.html.j2:225
msgid "Roles"
msgstr ""
#: titanembeds/templates/embed.html.j2:234
msgid "Server Emoji"
msgstr ""
#: titanembeds/templates/embed.html.j2:251
msgid "Please login to post a message."
msgstr ""
#: titanembeds/templates/embed.html.j2:251
msgid "Login"
msgstr ""