Skip to content

Commit

Permalink
locale: update set-user command to respect locale
Browse files Browse the repository at this point in the history
  • Loading branch information
purarue committed Jun 12, 2024
1 parent 1668f41 commit 787b1e3
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 7 deletions.
5 changes: 4 additions & 1 deletion filmswap/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,11 @@ async def filmswap_unban(
f"Unbanned {user_id} from the swap", ephemeral=True
)

_set_done_cmd_name = _("set-user-done-watching")
_set_done_desc = _("Set /done-watching for a user")

@discord.app_commands.command( # type: ignore[arg-type]
name="set-user-done-watching", description="Set /done-watching for a user"
name=_set_done_cmd_name, description=_set_done_desc
)
async def set_watching(
self,
Expand Down
14 changes: 12 additions & 2 deletions messages/film.pot
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-06-12 12:56-0700\n"
"POT-Creation-Date: 2024-06-12 13:42-0700\n"
"PO-Revision-Date: 2024-05-15 16:16-0700\n"
"Language-Team: English\n"
"Language: en_US\n"
Expand Down Expand Up @@ -143,7 +143,17 @@ msgstr ""
msgid "Join the film swap by clicking the button below!"
msgstr "Join the film swap by clicking the button below!"

#: filmswap/manage.py:951
#: filmswap/manage.py:638
#, fuzzy
msgid "set-user-done-watching"
msgstr "set-user-done-watching"

#: filmswap/manage.py:639
#, fuzzy
msgid "Set /done-watching for a user"
msgstr "Set /done-watching for a user"

#: filmswap/manage.py:954
msgid ""
"Once you've watched your film(s), run `/done-watching` and post your "
"thoughts for this month here!"
Expand Down
13 changes: 11 additions & 2 deletions messages/manga.pot
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-06-12 12:56-0700\n"
"POT-Creation-Date: 2024-06-12 13:42-0700\n"
"PO-Revision-Date: 2024-05-15 16:16-0700\n"
"Language-Team: English\n"
"Language: en_US\n"
Expand Down Expand Up @@ -144,7 +144,16 @@ msgstr ""
msgid "Join the film swap by clicking the button below!"
msgstr "Join the manga swap by clicking the button below!"

#: filmswap/manage.py:951
#: filmswap/manage.py:638
msgid "set-user-done-watching"
msgstr "set-user-done-reading"

#: filmswap/manage.py:639
#, fuzzy
msgid "Set /done-watching for a user"
msgstr "Set /done-reading for a user"

#: filmswap/manage.py:954
msgid ""
"Once you've watched your film(s), run `/done-watching` and post your "
"thoughts for this month here!"
Expand Down
12 changes: 10 additions & 2 deletions messages/reference.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: 2024-06-12 12:56-0700\n"
"POT-Creation-Date: 2024-06-12 13:42-0700\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 Down Expand Up @@ -127,7 +127,15 @@ msgstr ""
msgid "Join the film swap by clicking the button below!"
msgstr ""

#: filmswap/manage.py:951
#: filmswap/manage.py:638
msgid "set-user-done-watching"
msgstr ""

#: filmswap/manage.py:639
msgid "Set /done-watching for a user"
msgstr ""

#: filmswap/manage.py:954
msgid ""
"Once you've watched your film(s), run `/done-watching` and post your "
"thoughts for this month here!"
Expand Down

0 comments on commit 787b1e3

Please sign in to comment.