diff --git a/.gitignore b/.gitignore index bb84320..a9bb8ed 100644 --- a/.gitignore +++ b/.gitignore @@ -47,7 +47,6 @@ coverage.xml # Translations *.mo -*.pot # Django stuff: *.log diff --git a/webapp/bin/tr_init.py b/webapp/bin/tr_init.py index 58d3b50..e88b81e 100755 --- a/webapp/bin/tr_init.py +++ b/webapp/bin/tr_init.py @@ -8,6 +8,9 @@ else: if len(sys.argv) != 2: print("usage: tr_init ") sys.exit(1) -os.system(pybabel + ' extract -F babel.cfg -k lazy_gettext -o messages.pot titanembeds') -os.system(pybabel + ' init -i messages.pot -d titanembeds/translations -l ' + sys.argv[1]) -os.unlink('messages.pot') \ No newline at end of file +try: + os.unlink('titanembeds/translations/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]) \ No newline at end of file diff --git a/webapp/bin/tr_update.py b/webapp/bin/tr_update.py index d836e1a..cb9d5f3 100755 --- a/webapp/bin/tr_update.py +++ b/webapp/bin/tr_update.py @@ -5,6 +5,6 @@ if sys.platform == 'win32': pybabel = 'flask\\Scripts\\pybabel' else: 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.unlink('messages.pot') \ No newline at end of file diff --git a/webapp/titanembeds/translations/messages.pot b/webapp/titanembeds/translations/messages.pot new file mode 100644 index 0000000..b498344 --- /dev/null +++ b/webapp/titanembeds/translations/messages.pot @@ -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 , 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 \n" +"Language-Team: LANGUAGE \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 "" +