Skip to content

Commit

Permalink
chore: update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
shonenada committed Feb 21, 2019
1 parent e8e1a42 commit 2e6c21c
Show file tree
Hide file tree
Showing 8 changed files with 197 additions and 157 deletions.
2 changes: 1 addition & 1 deletion babel.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

if [ $1 == "pot" ];then
pybabel extract -F ./stalls/babel.cfg -k lazy_gettext -o ./stalls/messages.pot ./stalls
pybabel extract -F ./stalls/babel.cfg -o ./stalls/messages.pot ./stalls
fi

if [ $1 == "init" ];then
Expand Down
113 changes: 63 additions & 50 deletions stalls/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2019-02-21 23:33+0800\n"
"POT-Creation-Date: 2019-02-22 00:30+0800\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"
Expand All @@ -17,148 +17,161 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.6.0\n"

#: stalls/modules/poll/api.py:34
#: stalls/modules/poll/form/show_poll_result.py:82
#: stalls/modules/poll/form/show_poll_result.py:92
#: stalls/modules/poll/api.py:30 stalls/modules/poll/form/result.py:105
#: stalls/modules/poll/form/result.py:115
#: stalls/modules/poll/form/show_poll_result.py:83
#: stalls/modules/poll/form/show_poll_result.py:93
msgid "Poll Result"
msgstr ""

#: stalls/modules/poll/api.py:77 stalls/modules/poll/api.py:119
#: stalls/modules/poll/api.py:152 stalls/modules/poll/api.py:154
#: stalls/modules/poll/api.py:73 stalls/modules/poll/api.py:115
#: stalls/modules/poll/api.py:147 stalls/modules/poll/api.py:149
msgid "Operation Failed"
msgstr ""

#: stalls/modules/poll/api.py:88 stalls/modules/poll/api.py:108
#: stalls/modules/poll/service.py:172
#: stalls/modules/poll/api.py:84 stalls/modules/poll/api.py:104
#: stalls/modules/poll/service.py:183
msgid "Invalid Poll"
msgstr ""

#: stalls/modules/poll/api.py:91 stalls/modules/poll/api.py:111
#: stalls/modules/poll/api.py:87 stalls/modules/poll/api.py:107
msgid "Poll Expired"
msgstr ""

#: stalls/modules/poll/api.py:95 stalls/modules/poll/service.py:176
msgid "You have voted"
msgstr ""

#: stalls/modules/poll/service.py:37 stalls/modules/poll/service.py:51
#: stalls/modules/poll/service.py:36 stalls/modules/poll/service.py:42
#: stalls/modules/poll/service.py:57
msgid "Parameters Error"
msgstr ""

#: stalls/modules/poll/service.py:61 stalls/modules/poll/service.py:65
#: stalls/modules/poll/service.py:70 stalls/modules/poll/service.py:74
msgid "Invalid Expiration"
msgstr ""

#: stalls/modules/poll/service.py:104
#: stalls/modules/poll/service.py:113
msgid "Poll Not Found"
msgstr ""

#: stalls/modules/poll/service.py:163
#: stalls/modules/poll/service.py:172
msgid "Please Choose Your Option"
msgstr ""

#: stalls/modules/poll/service.py:168
#: stalls/modules/poll/service.py:179
msgid "Invalid Option"
msgstr ""

#: stalls/modules/poll/service.py:186
#: stalls/modules/poll/service.py:187
msgid "You have voted"
msgstr ""

#: stalls/modules/poll/service.py:197
msgid "Opeartion Success"
msgstr ""

#: stalls/modules/poll/form/create_poll.py:16
#: stalls/modules/poll/form/poll.py:15
#, python-format
msgid "Your are creating a poll with %(count)d options"
msgid "with %(num)d options"
msgstr ""

#: stalls/modules/poll/form/create_poll.py:19
msgid "Poll Name"
#: stalls/modules/poll/form/poll.py:19
msgid "Your are creating a poll, how many options do you want?"
msgstr ""

#: stalls/modules/poll/form/create_poll.py:24
#, python-format
msgid "Option %(idx)d"
#: stalls/modules/poll/form/poll.py:22
msgid "Option Count"
msgstr ""

#: stalls/modules/poll/form/create_poll.py:29
#: stalls/modules/poll/form/show_poll.py:22
msgid "Poll Expiration"
#: stalls/modules/poll/form/poll.py:23
msgid "Please select the number of options"
msgstr ""

#: stalls/modules/poll/form/create_poll.py:31
msgid "Target Channel"
#: stalls/modules/poll/form/poll.py:26
msgid "Next"
msgstr ""

#: stalls/modules/poll/form/create_poll.py:34
msgid "Create and Send Poll"
#: stalls/modules/poll/form/poll.py:34
#, python-format
msgid "Your are creating a poll with %(count)d options"
msgstr ""

#: stalls/modules/poll/form/setup_option_count.py:13
#, python-format
msgid "with %(num)d options"
#: stalls/modules/poll/form/poll.py:37
msgid "Poll Name"
msgstr ""

#: stalls/modules/poll/form/setup_option_count.py:19
msgid "Your are creating a poll, how many options do you want?"
#: stalls/modules/poll/form/poll.py:42
#, python-format
msgid "Option %(idx)d"
msgstr ""

#: stalls/modules/poll/form/setup_option_count.py:22
msgid "Option Count"
#: stalls/modules/poll/form/poll.py:47 stalls/modules/poll/form/result.py:24
msgid "Poll Expiration"
msgstr ""

#: stalls/modules/poll/form/setup_option_count.py:23
msgid "Please select the number of options"
#: stalls/modules/poll/form/poll.py:49
msgid "Target Channel"
msgstr ""

#: stalls/modules/poll/form/setup_option_count.py:26
msgid "Next"
#: stalls/modules/poll/form/poll.py:52
msgid "Create and Send Poll"
msgstr ""

#: stalls/modules/poll/form/show_poll.py:20
#: stalls/modules/poll/form/result.py:22
msgid "Description"
msgstr ""

#: stalls/modules/poll/form/show_poll.py:27
#: stalls/modules/poll/form/result.py:29
msgid "Confirm"
msgstr ""

#: stalls/modules/poll/form/result.py:41
#: stalls/modules/poll/form/show_poll_result.py:20
msgid "You have not joined any polls yet"
msgstr ""

#: stalls/modules/poll/form/result.py:45 stalls/modules/poll/form/result.py:60
#: stalls/modules/poll/form/show_poll_result.py:24
#: stalls/modules/poll/form/show_poll_result.py:39
msgid "Polls I Created"
msgstr ""

#: stalls/modules/poll/form/result.py:49 stalls/modules/poll/form/result.py:74
#: stalls/modules/poll/form/show_poll_result.py:28
#: stalls/modules/poll/form/show_poll_result.py:53
msgid "Polls I Joined"
msgstr ""

#: stalls/modules/poll/form/result.py:63 stalls/modules/poll/form/result.py:76
#: stalls/modules/poll/form/show_poll_result.py:42
#: stalls/modules/poll/form/show_poll_result.py:55
msgid "View Result"
msgstr ""

#: stalls/modules/poll/form/result.py:83
#: stalls/modules/poll/form/show_poll_result.py:62
msgid "Poll Created"
msgstr ""

#: stalls/modules/poll/form/result.py:90
#: stalls/modules/poll/form/show_poll_result.py:69
#, python-format
msgid "Poll Name: %(description)s"
msgstr ""

#: stalls/modules/poll/form/show_poll_result.py:72
#: stalls/modules/poll/form/result.py:94
#: stalls/modules/poll/form/show_poll_result.py:73
#, python-format
msgid "Poll Expiration: %(expiration)s"
msgstr ""

#: stalls/modules/poll/form/show_poll_result.py:93
#: stalls/modules/poll/form/result.py:116
#: stalls/modules/poll/form/show_poll_result.py:94
msgid "Refresh"
msgstr ""

#: stalls/modules/poll/form/start.py:15
#: stalls/modules/poll/form/start.py:13
msgid "Create poll by clicking following button"
msgstr ""

#: stalls/modules/poll/form/start.py:16
#: stalls/modules/poll/form/start.py:14
msgid "Create Poll"
msgstr ""

5 changes: 3 additions & 2 deletions stalls/modules/poll/form/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def show_joined_polls(user_id):
def show_poll_result(poll):
form = Form()
context = Context()
context.append('Poll Created')
context.append(_('Poll Created'))

form.add_actions(
context,
Expand All @@ -91,7 +91,8 @@ def show_poll_result(poll):
description=poll.description)),

Section(value=_('Poll Expiration: %(expiration)s',
expiration=poll.end_datetime.strftime("%Y-%m-%d %H:%M:%S"))),
expiration=poll.end_datetime.strftime(
"%Y-%m-%d %H:%M:%S"))),
)

poll_options = PollOption.get_multi_by_poll_id(poll.id)
Expand Down
2 changes: 1 addition & 1 deletion stalls/modules/poll/form/show_poll_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def create_show_joined_poll_result_form(user_id):
def create_show_poll_result(poll):
form = Form()
context = Context()
context.append('Poll Created')
context.append(_('Poll Created'))

form.add_actions(
context,
Expand Down
Binary file modified stalls/translations/en/LC_MESSAGES/messages.mo
Binary file not shown.
Loading

0 comments on commit 2e6c21c

Please sign in to comment.