Added #115, additional enchantments

This commit is contained in:
Frisk 2020-04-26 22:27:52 +02:00
parent 1bf9a42ad3
commit 8d54081316
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC
10 changed files with 280 additions and 153 deletions

View file

@ -1,41 +1,63 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package. # This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# #
#, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-04-06 18:55+0200\n" "POT-Creation-Date: 2020-04-26 22:05+0200\n"
"PO-Revision-Date: 2020-04-23 23:41+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Frisk <piotrex43@protonmail.ch>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: \n" "Language-Team: LANGUAGE <LL@li.org>\n"
"Language: en_US\n" "Language: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Lokalize 19.12.3\n"
#: discussions.py:53 #: discussions.py:53
#, python-brace-format #, python-brace-format
msgid "Replied to \"{title}\"" msgid "Replied to \"{title}\""
msgstr "" msgstr ""
#: discussions.py:56 #: discussions.py:58
#, python-brace-format #, python-brace-format
msgid "Created \"{title}\"" msgid "Created \"{title}\""
msgstr "" msgstr ""
#: discussions.py:73 #: discussions.py:70
#, python-brace-format
msgid "Created a poll titled \"{title}\""
msgstr ""
#: discussions.py:75
msgid "Option {}"
msgstr ""
#: discussions.py:76
#, python-brace-format
msgid "__[View image]({image_url})__"
msgstr ""
#: discussions.py:89
#, python-brace-format #, python-brace-format
msgid "" msgid ""
"[{author}](<{url}f/u/{creatorId}>) created [{title}](<{url}f/p/{threadId}>) " "[{author}](<{url}f/u/{creatorId}>) created [{title}](<{url}f/p/{threadId}>) "
"in {forumName}" "in {forumName}"
msgstr "" msgstr ""
#: discussions.py:76 #: discussions.py:92
#, python-brace-format #, python-brace-format
msgid "" msgid ""
"[{author}](<{url}f/u/{creatorId}>) created a [reply](<{url}f/p/{threadId}/r/" "[{author}](<{url}f/u/{creatorId}>) created a [reply](<{url}f/p/{threadId}/r/"
"{postId}>) to [{title}](<{url}f/p/{threadId}>) in {forumName}" "{postId}>) to [{title}](<{url}f/p/{threadId}>) in {forumName}"
msgstr "" msgstr ""
#: discussions.py:97
#, python-brace-format
msgid ""
"[{author}](<{url}f/u/{creatorId}>) created a poll [{title}](<{url}f/p/"
"{threadId}>) in {forumName}"
msgstr ""

View file

@ -49,10 +49,12 @@ def embed_formatter(post, post_type):
wikiurl=settings["fandom_discussions"]["wiki_url"], creatorId=post["creatorId"]), icon_url=post["createdBy"]["avatarUrl"]) wikiurl=settings["fandom_discussions"]["wiki_url"], creatorId=post["creatorId"]), icon_url=post["createdBy"]["avatarUrl"])
if post_type == "TEXT": if post_type == "TEXT":
if post["isReply"]: if post["isReply"]:
embed.event_type = "discussion/reply"
embed["title"] = _("Replied to \"{title}\"").format(title=post["_embedded"]["thread"][0]["title"]) embed["title"] = _("Replied to \"{title}\"").format(title=post["_embedded"]["thread"][0]["title"])
embed["url"] = "{wikiurl}f/p/{threadId}/r/{postId}".format( embed["url"] = "{wikiurl}f/p/{threadId}/r/{postId}".format(
wikiurl=settings["fandom_discussions"]["wiki_url"], threadId=post["threadId"], postId=post["id"]) wikiurl=settings["fandom_discussions"]["wiki_url"], threadId=post["threadId"], postId=post["id"])
else: else:
embed.event_type = "discussion/post"
embed["title"] = _("Created \"{title}\"").format(title=post["title"]) embed["title"] = _("Created \"{title}\"").format(title=post["title"])
embed["url"] = "{wikiurl}f/p/{threadId}".format(wikiurl=settings["fandom_discussions"]["wiki_url"], embed["url"] = "{wikiurl}f/p/{threadId}".format(wikiurl=settings["fandom_discussions"]["wiki_url"],
threadId=post["threadId"]) threadId=post["threadId"])
@ -63,8 +65,9 @@ def embed_formatter(post, post_type):
embed["image"]["url"] = embed["description"].strip() embed["image"]["url"] = embed["description"].strip()
embed["description"] = "" embed["description"] = ""
elif post_type == "POLL": elif post_type == "POLL":
embed.event_type = "discussion/poll"
poll = post["poll"] poll = post["poll"]
embed["title"] = _("Created a poll titled \"{}\"").format(poll["question"]) embed["title"] = _("Created a poll titled \"{title}\"").format(title=poll["question"])
image_type = False image_type = False
if poll["answers"][0]["image"] is not None: if poll["answers"][0]["image"] is not None:
image_type = True image_type = True
@ -81,6 +84,7 @@ def embed_formatter(post, post_type):
def compact_formatter(post, post_type): def compact_formatter(post, post_type):
"""Compact formatter for Fandom discussions.""" """Compact formatter for Fandom discussions."""
message = None message = None
if post_type == "TEXT":
if not post["isReply"]: if not post["isReply"]:
message = _("[{author}](<{url}f/u/{creatorId}>) created [{title}](<{url}f/p/{threadId}>) in {forumName}").format( message = _("[{author}](<{url}f/u/{creatorId}>) created [{title}](<{url}f/p/{threadId}>) in {forumName}").format(
author=post["createdBy"]["name"], url=settings["fandom_discussions"]["wiki_url"], creatorId=post["creatorId"], title=post["title"], threadId=post["threadId"], forumName=post["forumName"]) author=post["createdBy"]["name"], url=settings["fandom_discussions"]["wiki_url"], creatorId=post["creatorId"], title=post["title"], threadId=post["threadId"], forumName=post["forumName"])
@ -88,6 +92,11 @@ def compact_formatter(post, post_type):
message = _("[{author}](<{url}f/u/{creatorId}>) created a [reply](<{url}f/p/{threadId}/r/{postId}>) to [{title}](<{url}f/p/{threadId}>) in {forumName}").format( message = _("[{author}](<{url}f/u/{creatorId}>) created a [reply](<{url}f/p/{threadId}/r/{postId}>) to [{title}](<{url}f/p/{threadId}>) in {forumName}").format(
author=post["createdBy"]["name"], url=settings["fandom_discussions"]["wiki_url"], creatorId=post["creatorId"], threadId=post["threadId"], postId=post["id"], title=post["_embedded"]["thread"][0]["title"], forumName=post["forumName"] author=post["createdBy"]["name"], url=settings["fandom_discussions"]["wiki_url"], creatorId=post["creatorId"], threadId=post["threadId"], postId=post["id"], title=post["_embedded"]["thread"][0]["title"], forumName=post["forumName"]
) )
elif post_type == "POLL":
message = _(
"[{author}](<{url}f/u/{creatorId}>) created a poll [{title}](<{url}f/p/{threadId}>) in {forumName}").format(
author=post["createdBy"]["name"], url=settings["fandom_discussions"]["wiki_url"],
creatorId=post["creatorId"], title=post["title"], threadId=post["threadId"], forumName=post["forumName"])
send_to_discord(DiscordMessage("compact", "discussion", content=message)) send_to_discord(DiscordMessage("compact", "discussion", content=message))

Binary file not shown.

View file

@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-04-06 18:55+0200\n" "POT-Creation-Date: 2020-04-26 22:05+0200\n"
"PO-Revision-Date: 2020-04-06 18:56+0200\n" "PO-Revision-Date: 2020-04-26 22:15+0200\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: pl\n" "Language: pl\n"
@ -24,12 +24,26 @@ msgstr ""
msgid "Replied to \"{title}\"" msgid "Replied to \"{title}\""
msgstr "Odpowiedział(a) w „{title}”" msgstr "Odpowiedział(a) w „{title}”"
#: discussions.py:56 #: discussions.py:58
#, python-brace-format #, python-brace-format
msgid "Created \"{title}\"" msgid "Created \"{title}\""
msgstr "Utworzył(a) „{title}”" msgstr "Utworzył(a) „{title}”"
#: discussions.py:73 #: discussions.py:70
#, python-brace-format
msgid "Created a poll titled \"{title}\""
msgstr "Utworzył(a) ankietę zatytułowaną „{title}”"
#: discussions.py:75
msgid "Option {}"
msgstr "Opcja {}"
#: discussions.py:76
#, python-brace-format
msgid "__[View image]({image_url})__"
msgstr "__[Zobacz zdjęcie]({image_url})__"
#: discussions.py:89
#, python-brace-format #, python-brace-format
msgid "" msgid ""
"[{author}](<{url}f/u/{creatorId}>) created [{title}](<{url}f/p/{threadId}>) " "[{author}](<{url}f/u/{creatorId}>) created [{title}](<{url}f/p/{threadId}>) "
@ -38,7 +52,7 @@ msgstr ""
"[{author}](<{url}f/u/{creatorId}>) utworzył(a) [{title}](<{url}f/p/{threadId}" "[{author}](<{url}f/u/{creatorId}>) utworzył(a) [{title}](<{url}f/p/{threadId}"
">) w {forumName}" ">) w {forumName}"
#: discussions.py:76 #: discussions.py:92
#, python-brace-format #, python-brace-format
msgid "" msgid ""
"[{author}](<{url}f/u/{creatorId}>) created a [reply](<{url}f/p/{threadId}/r/" "[{author}](<{url}f/u/{creatorId}>) created a [reply](<{url}f/p/{threadId}/r/"
@ -47,3 +61,12 @@ msgstr ""
"[{author}](<{url}f/u/{creatorId}>) utworzył(a) [odpowiedź](<{url}f/p/" "[{author}](<{url}f/u/{creatorId}>) utworzył(a) [odpowiedź](<{url}f/p/"
"{threadId}/r/{postId}>) pod tematem [{title}](<{url}f/p/{threadId}>) w " "{threadId}/r/{postId}>) pod tematem [{title}](<{url}f/p/{threadId}>) w "
"{forumName}" "{forumName}"
#: discussions.py:97
#, python-brace-format
msgid ""
"[{author}](<{url}f/u/{creatorId}>) created a poll [{title}](<{url}f/p/"
"{threadId}>) in {forumName}"
msgstr ""
"[{author}](<{url}f/u/{creatorId}>) utworzył(a) ankietę [{title}](<{url}f/p/"
"{threadId}>) w {forumName}"

Binary file not shown.

View file

@ -0,0 +1,67 @@
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Frisk <piotrex43@protonmail.ch>, 2020.
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-04-26 22:05+0200\n"
"PO-Revision-Date: 2020-04-26 22:18+0200\n"
"Last-Translator: Frisk <piotrex43@protonmail.ch>\n"
"Language-Team: \n"
"Language: en_US\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.3\n"
#: discussions.py:53
#, python-brace-format
msgid "Replied to \"{title}\""
msgstr "Respondido o \"{title}\""
#: discussions.py:58
#, python-brace-format
msgid "Created \"{title}\""
msgstr "Criado \"{title}\""
#: discussions.py:70
#, python-brace-format
msgid "Created a poll titled \"{title}\""
msgstr ""
#: discussions.py:75
msgid "Option {}"
msgstr ""
#: discussions.py:76
#, python-brace-format
msgid "__[View image]({image_url})__"
msgstr ""
#: discussions.py:89
#, python-brace-format
msgid ""
"[{author}](<{url}f/u/{creatorId}>) created [{title}](<{url}f/p/{threadId}>) "
"in {forumName}"
msgstr ""
"Criado [{title}](<{url}f/p/{threadId}>) por [{author}](<{url}f/u/{creatorId}"
">) no {forumName}"
#: discussions.py:92
#, python-brace-format
msgid ""
"[{author}](<{url}f/u/{creatorId}>) created a [reply](<{url}f/p/{threadId}/r/"
"{postId}>) to [{title}](<{url}f/p/{threadId}>) in {forumName}"
msgstr ""
"[Responder](<{url}f/p/{threadId}/r/{postId}>) por [{author}](<{url}f/u/"
"{creatorId}>) do [{title}](<{url}f/p/{threadId}>) do {forumName}"
#: discussions.py:97
#, python-brace-format
msgid ""
"[{author}](<{url}f/u/{creatorId}>) created a poll [{title}](<{url}f/p/"
"{threadId}>) in {forumName}"
msgstr ""

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-04-06 18:47+0200\n" "POT-Creation-Date: 2020-04-26 21:54+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n" "Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: misc.py:120 #: misc.py:123
msgid "" msgid ""
"\n" "\n"
"__And more__" "__And more__"

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-04-06 18:47+0200\n" "POT-Creation-Date: 2020-04-26 21:54+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -70,7 +70,7 @@ msgstr ""
msgid "Battle.net handle" msgid "Battle.net handle"
msgstr "" msgstr ""
#: rcgcdw.py:132 rcgcdw.py:856 #: rcgcdw.py:132 rcgcdw.py:848
msgid "Unknown" msgid "Unknown"
msgstr "" msgstr ""
@ -151,7 +151,7 @@ msgid ""
"* to [{target}]({target_url}){comment}" "* to [{target}]({target_url}){comment}"
msgstr "" msgstr ""
#: rcgcdw.py:222 rcgcdw.py:631 #: rcgcdw.py:222 rcgcdw.py:626
msgid "infinity and beyond" msgid "infinity and beyond"
msgstr "" msgstr ""
@ -159,7 +159,7 @@ msgstr ""
msgid " on pages: " msgid " on pages: "
msgstr "" msgstr ""
#: rcgcdw.py:246 rcgcdw.py:651 #: rcgcdw.py:246 rcgcdw.py:646
msgid " and namespaces: " msgid " and namespaces: "
msgstr "" msgstr ""
@ -240,11 +240,11 @@ msgid ""
"[{author}]({author_url}) edited the {field} on {target} profile. *({desc})*" "[{author}]({author_url}) edited the {field} on {target} profile. *({desc})*"
msgstr "" msgstr ""
#: rcgcdw.py:317 rcgcdw.py:319 rcgcdw.py:732 rcgcdw.py:734 #: rcgcdw.py:317 rcgcdw.py:319 rcgcdw.py:724 rcgcdw.py:726
msgid "none" msgid "none"
msgstr "" msgstr ""
#: rcgcdw.py:325 rcgcdw.py:719 #: rcgcdw.py:325 rcgcdw.py:711
msgid "System" msgid "System"
msgstr "" msgstr ""
@ -255,7 +255,7 @@ msgid ""
"following settings: {settings}{comment}" "following settings: {settings}{comment}"
msgstr "" msgstr ""
#: rcgcdw.py:332 rcgcdw.py:340 rcgcdw.py:742 rcgcdw.py:748 #: rcgcdw.py:332 rcgcdw.py:340 rcgcdw.py:734 rcgcdw.py:740
msgid " [cascading]" msgid " [cascading]"
msgstr "" msgstr ""
@ -419,7 +419,7 @@ msgstr ""
msgid "An action has been hidden by administration." msgid "An action has been hidden by administration."
msgstr "" msgstr ""
#: rcgcdw.py:444 rcgcdw.py:735 #: rcgcdw.py:445 rcgcdw.py:727
msgid "No description provided" msgid "No description provided"
msgstr "" msgstr ""
@ -435,559 +435,559 @@ msgstr ""
msgid "b" msgid "b"
msgstr "" msgstr ""
#: rcgcdw.py:512 rcgcdw.py:517 #: rcgcdw.py:510 rcgcdw.py:515
msgid "__Only whitespace__" msgid "__Only whitespace__"
msgstr "" msgstr ""
#: rcgcdw.py:523 #: rcgcdw.py:520
msgid "Removed" msgid "Removed"
msgstr "" msgstr ""
#: rcgcdw.py:526 #: rcgcdw.py:522
msgid "Added" msgid "Added"
msgstr "" msgstr ""
#: rcgcdw.py:560 rcgcdw.py:600 #: rcgcdw.py:556 rcgcdw.py:595
msgid "Options" msgid "Options"
msgstr "" msgstr ""
#: rcgcdw.py:560 #: rcgcdw.py:556
#, python-brace-format #, python-brace-format
msgid "([preview]({link}) | [undo]({undolink}))" msgid "([preview]({link}) | [undo]({undolink}))"
msgstr "" msgstr ""
#: rcgcdw.py:565 #: rcgcdw.py:561
#, python-brace-format #, python-brace-format
msgid "Uploaded a new version of {name}" msgid "Uploaded a new version of {name}"
msgstr "" msgstr ""
#: rcgcdw.py:567 #: rcgcdw.py:563
#, python-brace-format #, python-brace-format
msgid "Reverted a version of {name}" msgid "Reverted a version of {name}"
msgstr "" msgstr ""
#: rcgcdw.py:569 #: rcgcdw.py:565
#, python-brace-format #, python-brace-format
msgid "Uploaded {name}" msgid "Uploaded {name}"
msgstr "" msgstr ""
#: rcgcdw.py:585 #: rcgcdw.py:581
msgid "**No license!**" msgid "**No license!**"
msgstr "" msgstr ""
#: rcgcdw.py:597 #: rcgcdw.py:593
msgid "" msgid ""
"\n" "\n"
"License: {}" "License: {}"
msgstr "" msgstr ""
#: rcgcdw.py:600 #: rcgcdw.py:595
#, python-brace-format #, python-brace-format
msgid "([preview]({link}))" msgid "([preview]({link}))"
msgstr "" msgstr ""
#: rcgcdw.py:605 #: rcgcdw.py:600
#, python-brace-format #, python-brace-format
msgid "Deleted page {article}" msgid "Deleted page {article}"
msgstr "" msgstr ""
#: rcgcdw.py:608 #: rcgcdw.py:603
#, python-brace-format #, python-brace-format
msgid "Deleted redirect {article} by overwriting" msgid "Deleted redirect {article} by overwriting"
msgstr "" msgstr ""
#: rcgcdw.py:612 #: rcgcdw.py:607
msgid "No redirect has been made" msgid "No redirect has been made"
msgstr "" msgstr ""
#: rcgcdw.py:613 #: rcgcdw.py:608
msgid "A redirect has been made" msgid "A redirect has been made"
msgstr "" msgstr ""
#: rcgcdw.py:614 #: rcgcdw.py:609
#, python-brace-format #, python-brace-format
msgid "Moved {redirect}{article} to {target}" msgid "Moved {redirect}{article} to {target}"
msgstr "" msgstr ""
#: rcgcdw.py:617 #: rcgcdw.py:612
#, python-brace-format #, python-brace-format
msgid "Moved {redirect}{article} to {title} over redirect" msgid "Moved {redirect}{article} to {title} over redirect"
msgstr "" msgstr ""
#: rcgcdw.py:621 #: rcgcdw.py:616
#, python-brace-format #, python-brace-format
msgid "Moved protection settings from {redirect}{article} to {title}" msgid "Moved protection settings from {redirect}{article} to {title}"
msgstr "" msgstr ""
#: rcgcdw.py:644 #: rcgcdw.py:639
msgid "Blocked from editing the following pages: " msgid "Blocked from editing the following pages: "
msgstr "" msgstr ""
#: rcgcdw.py:653 #: rcgcdw.py:648
msgid "Blocked from editing pages on following namespaces: " msgid "Blocked from editing pages on following namespaces: "
msgstr "" msgstr ""
#: rcgcdw.py:667 #: rcgcdw.py:659
msgid "Partial block details" msgid "Partial block details"
msgstr "" msgstr ""
#: rcgcdw.py:668 #: rcgcdw.py:660
#, python-brace-format #, python-brace-format
msgid "Blocked {blocked_user} for {time}" msgid "Blocked {blocked_user} for {time}"
msgstr "" msgstr ""
#: rcgcdw.py:672 #: rcgcdw.py:664
#, python-brace-format #, python-brace-format
msgid "Changed block settings for {blocked_user}" msgid "Changed block settings for {blocked_user}"
msgstr "" msgstr ""
#: rcgcdw.py:676 #: rcgcdw.py:668
#, python-brace-format #, python-brace-format
msgid "Unblocked {blocked_user}" msgid "Unblocked {blocked_user}"
msgstr "" msgstr ""
#: rcgcdw.py:681 #: rcgcdw.py:673
#, python-brace-format #, python-brace-format
msgid "Left a comment on {target}'s profile" msgid "Left a comment on {target}'s profile"
msgstr "" msgstr ""
#: rcgcdw.py:683 #: rcgcdw.py:675
msgid "Left a comment on their own profile" msgid "Left a comment on their own profile"
msgstr "" msgstr ""
#: rcgcdw.py:688 #: rcgcdw.py:680
#, python-brace-format #, python-brace-format
msgid "Replied to a comment on {target}'s profile" msgid "Replied to a comment on {target}'s profile"
msgstr "" msgstr ""
#: rcgcdw.py:690 #: rcgcdw.py:682
msgid "Replied to a comment on their own profile" msgid "Replied to a comment on their own profile"
msgstr "" msgstr ""
#: rcgcdw.py:695 #: rcgcdw.py:687
#, python-brace-format #, python-brace-format
msgid "Edited a comment on {target}'s profile" msgid "Edited a comment on {target}'s profile"
msgstr "" msgstr ""
#: rcgcdw.py:697 #: rcgcdw.py:689
msgid "Edited a comment on their own profile" msgid "Edited a comment on their own profile"
msgstr "" msgstr ""
#: rcgcdw.py:700 #: rcgcdw.py:692
#, python-brace-format #, python-brace-format
msgid "Edited {target}'s profile" msgid "Edited {target}'s profile"
msgstr "" msgstr ""
#: rcgcdw.py:700 #: rcgcdw.py:692
msgid "Edited their own profile" msgid "Edited their own profile"
msgstr "" msgstr ""
#: rcgcdw.py:702 #: rcgcdw.py:694
#, python-brace-format #, python-brace-format
msgid "Cleared the {field} field" msgid "Cleared the {field} field"
msgstr "" msgstr ""
#: rcgcdw.py:704 #: rcgcdw.py:696
#, python-brace-format #, python-brace-format
msgid "{field} field changed to: {desc}" msgid "{field} field changed to: {desc}"
msgstr "" msgstr ""
#: rcgcdw.py:707 #: rcgcdw.py:699
#, python-brace-format #, python-brace-format
msgid "Purged a comment on {target}'s profile" msgid "Purged a comment on {target}'s profile"
msgstr "" msgstr ""
#: rcgcdw.py:713 #: rcgcdw.py:705
#, python-brace-format #, python-brace-format
msgid "Deleted a comment on {target}'s profile" msgid "Deleted a comment on {target}'s profile"
msgstr "" msgstr ""
#: rcgcdw.py:717 #: rcgcdw.py:709
#, python-brace-format #, python-brace-format
msgid "Changed group membership for {target}" msgid "Changed group membership for {target}"
msgstr "" msgstr ""
#: rcgcdw.py:721 #: rcgcdw.py:713
#, python-brace-format #, python-brace-format
msgid "{target} got autopromoted to a new usergroup" msgid "{target} got autopromoted to a new usergroup"
msgstr "" msgstr ""
#: rcgcdw.py:736 #: rcgcdw.py:728
#, python-brace-format #, python-brace-format
msgid "Groups changed from {old_groups} to {new_groups}{reason}" msgid "Groups changed from {old_groups} to {new_groups}{reason}"
msgstr "" msgstr ""
#: rcgcdw.py:740 #: rcgcdw.py:732
#, python-brace-format #, python-brace-format
msgid "Protected {target}" msgid "Protected {target}"
msgstr "" msgstr ""
#: rcgcdw.py:746 #: rcgcdw.py:738
#, python-brace-format #, python-brace-format
msgid "Changed protection level for {article}" msgid "Changed protection level for {article}"
msgstr "" msgstr ""
#: rcgcdw.py:752 #: rcgcdw.py:744
#, python-brace-format #, python-brace-format
msgid "Removed protection from {article}" msgid "Removed protection from {article}"
msgstr "" msgstr ""
#: rcgcdw.py:756 #: rcgcdw.py:748
#, python-brace-format #, python-brace-format
msgid "Changed visibility of revision on page {article} " msgid "Changed visibility of revision on page {article} "
msgid_plural "Changed visibility of {amount} revisions on page {article} " msgid_plural "Changed visibility of {amount} revisions on page {article} "
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: rcgcdw.py:761 #: rcgcdw.py:753
#, python-brace-format #, python-brace-format
msgid "Imported {article} with {count} revision" msgid "Imported {article} with {count} revision"
msgid_plural "Imported {article} with {count} revisions" msgid_plural "Imported {article} with {count} revisions"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: rcgcdw.py:766 #: rcgcdw.py:758
#, python-brace-format #, python-brace-format
msgid "Restored {article}" msgid "Restored {article}"
msgstr "" msgstr ""
#: rcgcdw.py:769 #: rcgcdw.py:761
msgid "Changed visibility of log events" msgid "Changed visibility of log events"
msgstr "" msgstr ""
#: rcgcdw.py:772 #: rcgcdw.py:764
msgid "Imported interwiki" msgid "Imported interwiki"
msgstr "" msgstr ""
#: rcgcdw.py:775 #: rcgcdw.py:767
#, python-brace-format #, python-brace-format
msgid "Edited abuse filter number {number}" msgid "Edited abuse filter number {number}"
msgstr "" msgstr ""
#: rcgcdw.py:778 #: rcgcdw.py:770
#, python-brace-format #, python-brace-format
msgid "Created abuse filter number {number}" msgid "Created abuse filter number {number}"
msgstr "" msgstr ""
#: rcgcdw.py:781 #: rcgcdw.py:773
#, python-brace-format #, python-brace-format
msgid "Merged revision histories of {article} into {dest}" msgid "Merged revision histories of {article} into {dest}"
msgstr "" msgstr ""
#: rcgcdw.py:785 #: rcgcdw.py:777
msgid "Added an entry to the interwiki table" msgid "Added an entry to the interwiki table"
msgstr "" msgstr ""
#: rcgcdw.py:786 rcgcdw.py:792 #: rcgcdw.py:778 rcgcdw.py:784
#, python-brace-format #, python-brace-format
msgid "Prefix: {prefix}, website: {website} | {desc}" msgid "Prefix: {prefix}, website: {website} | {desc}"
msgstr "" msgstr ""
#: rcgcdw.py:791 #: rcgcdw.py:783
msgid "Edited an entry in interwiki table" msgid "Edited an entry in interwiki table"
msgstr "" msgstr ""
#: rcgcdw.py:797 #: rcgcdw.py:789
msgid "Deleted an entry in interwiki table" msgid "Deleted an entry in interwiki table"
msgstr "" msgstr ""
#: rcgcdw.py:798 #: rcgcdw.py:790
#, python-brace-format #, python-brace-format
msgid "Prefix: {prefix} | {desc}" msgid "Prefix: {prefix} | {desc}"
msgstr "" msgstr ""
#: rcgcdw.py:801 #: rcgcdw.py:793
#, python-brace-format #, python-brace-format
msgid "Changed the content model of the page {article}" msgid "Changed the content model of the page {article}"
msgstr "" msgstr ""
#: rcgcdw.py:802 #: rcgcdw.py:794
#, python-brace-format #, python-brace-format
msgid "Model changed from {old} to {new}: {reason}" msgid "Model changed from {old} to {new}: {reason}"
msgstr "" msgstr ""
#: rcgcdw.py:807 #: rcgcdw.py:799
#, python-brace-format #, python-brace-format
msgid "Edited the sprite for {article}" msgid "Edited the sprite for {article}"
msgstr "" msgstr ""
#: rcgcdw.py:810 #: rcgcdw.py:802
#, python-brace-format #, python-brace-format
msgid "Created the sprite sheet for {article}" msgid "Created the sprite sheet for {article}"
msgstr "" msgstr ""
#: rcgcdw.py:813 #: rcgcdw.py:805
#, python-brace-format #, python-brace-format
msgid "Edited the slice for {article}" msgid "Edited the slice for {article}"
msgstr "" msgstr ""
#: rcgcdw.py:819 #: rcgcdw.py:811
#, python-brace-format #, python-brace-format
msgid "Created the Cargo table \"{table}\"" msgid "Created the Cargo table \"{table}\""
msgstr "" msgstr ""
#: rcgcdw.py:823 #: rcgcdw.py:815
#, python-brace-format #, python-brace-format
msgid "Deleted the Cargo table \"{table}\"" msgid "Deleted the Cargo table \"{table}\""
msgstr "" msgstr ""
#: rcgcdw.py:830 #: rcgcdw.py:822
#, python-brace-format #, python-brace-format
msgid "Recreated the Cargo table \"{table}\"" msgid "Recreated the Cargo table \"{table}\""
msgstr "" msgstr ""
#: rcgcdw.py:837 #: rcgcdw.py:829
#, python-brace-format #, python-brace-format
msgid "Replaced the Cargo table \"{table}\"" msgid "Replaced the Cargo table \"{table}\""
msgstr "" msgstr ""
#: rcgcdw.py:841 #: rcgcdw.py:833
#, python-brace-format #, python-brace-format
msgid "Created a tag \"{tag}\"" msgid "Created a tag \"{tag}\""
msgstr "" msgstr ""
#: rcgcdw.py:845 #: rcgcdw.py:837
#, python-brace-format #, python-brace-format
msgid "Deleted a tag \"{tag}\"" msgid "Deleted a tag \"{tag}\""
msgstr "" msgstr ""
#: rcgcdw.py:849 #: rcgcdw.py:841
#, python-brace-format #, python-brace-format
msgid "Activated a tag \"{tag}\"" msgid "Activated a tag \"{tag}\""
msgstr "" msgstr ""
#: rcgcdw.py:852 #: rcgcdw.py:844
#, python-brace-format #, python-brace-format
msgid "Deactivated a tag \"{tag}\"" msgid "Deactivated a tag \"{tag}\""
msgstr "" msgstr ""
#: rcgcdw.py:855 #: rcgcdw.py:847
msgid "Action has been hidden by administration." msgid "Action has been hidden by administration."
msgstr "" msgstr ""
#: rcgcdw.py:884 #: rcgcdw.py:867
msgid "Tags" msgid "Tags"
msgstr "" msgstr ""
#: rcgcdw.py:889 #: rcgcdw.py:870
msgid "**Added**: " msgid "**Added**: "
msgstr "" msgstr ""
#: rcgcdw.py:889 #: rcgcdw.py:870
msgid " and {} more\n" msgid " and {} more\n"
msgstr "" msgstr ""
#: rcgcdw.py:890 #: rcgcdw.py:871
msgid "**Removed**: " msgid "**Removed**: "
msgstr "" msgstr ""
#: rcgcdw.py:890 #: rcgcdw.py:871
msgid " and {} more" msgid " and {} more"
msgstr "" msgstr ""
#: rcgcdw.py:891 #: rcgcdw.py:872
msgid "Changed categories" msgid "Changed categories"
msgstr "" msgstr ""
#: rcgcdw.py:911 #: rcgcdw.py:889
msgid "~~hidden~~" msgid "~~hidden~~"
msgstr "" msgstr ""
#: rcgcdw.py:917 #: rcgcdw.py:895
msgid "hidden" msgid "hidden"
msgstr "" msgstr ""
#: rcgcdw.py:984 rcgcdw.py:986 rcgcdw.py:988 rcgcdw.py:990 rcgcdw.py:992 #: rcgcdw.py:965 rcgcdw.py:967 rcgcdw.py:969 rcgcdw.py:971 rcgcdw.py:973
#: rcgcdw.py:994 rcgcdw.py:996 #: rcgcdw.py:975 rcgcdw.py:977
#, python-brace-format #, python-brace-format
msgid "{value} (avg. {avg})" msgid "{value} (avg. {avg})"
msgstr "" msgstr ""
#: rcgcdw.py:1020 rcgcdw.py:1048 #: rcgcdw.py:1001 rcgcdw.py:1026
msgid "Daily overview" msgid "Daily overview"
msgstr "" msgstr ""
#: rcgcdw.py:1022 #: rcgcdw.py:1003
msgid "No activity" msgid "No activity"
msgstr "" msgstr ""
#: rcgcdw.py:1057 #: rcgcdw.py:1032
msgid " ({} action)" msgid " ({} action)"
msgid_plural " ({} actions)" msgid_plural " ({} actions)"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: rcgcdw.py:1059 #: rcgcdw.py:1034
msgid " ({} edit)" msgid " ({} edit)"
msgid_plural " ({} edits)" msgid_plural " ({} edits)"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: rcgcdw.py:1064 #: rcgcdw.py:1039
msgid " UTC ({} action)" msgid " UTC ({} action)"
msgid_plural " UTC ({} actions)" msgid_plural " UTC ({} actions)"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: rcgcdw.py:1066 rcgcdw.py:1067 rcgcdw.py:1071 #: rcgcdw.py:1041 rcgcdw.py:1042 rcgcdw.py:1046
msgid "But nobody came" msgid "But nobody came"
msgstr "" msgstr ""
#: rcgcdw.py:1075 #: rcgcdw.py:1049
msgid "Most active user" msgid "Most active user"
msgid_plural "Most active users" msgid_plural "Most active users"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: rcgcdw.py:1076 #: rcgcdw.py:1050
msgid "Most edited article" msgid "Most edited article"
msgid_plural "Most edited articles" msgid_plural "Most edited articles"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: rcgcdw.py:1077 #: rcgcdw.py:1051
msgid "Edits made" msgid "Edits made"
msgstr "" msgstr ""
#: rcgcdw.py:1077 #: rcgcdw.py:1051
msgid "New files" msgid "New files"
msgstr "" msgstr ""
#: rcgcdw.py:1077 #: rcgcdw.py:1051
msgid "Admin actions" msgid "Admin actions"
msgstr "" msgstr ""
#: rcgcdw.py:1078 #: rcgcdw.py:1052
msgid "Bytes changed" msgid "Bytes changed"
msgstr "" msgstr ""
#: rcgcdw.py:1078 #: rcgcdw.py:1052
msgid "New articles" msgid "New articles"
msgstr "" msgstr ""
#: rcgcdw.py:1079 #: rcgcdw.py:1053
msgid "Unique contributors" msgid "Unique contributors"
msgstr "" msgstr ""
#: rcgcdw.py:1080 #: rcgcdw.py:1054
msgid "Most active hour" msgid "Most active hour"
msgid_plural "Most active hours" msgid_plural "Most active hours"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: rcgcdw.py:1081 #: rcgcdw.py:1055
msgid "Day score" msgid "Day score"
msgstr "" msgstr ""
#: rcgcdw.py:1223 #: rcgcdw.py:1196
#, python-brace-format #, python-brace-format
msgid "Connection to {wiki} seems to be stable now." msgid "Connection to {wiki} seems to be stable now."
msgstr "" msgstr ""
#: rcgcdw.py:1224 rcgcdw.py:1339 #: rcgcdw.py:1197 rcgcdw.py:1312
msgid "Connection status" msgid "Connection status"
msgstr "" msgstr ""
#: rcgcdw.py:1338 #: rcgcdw.py:1311
#, python-brace-format #, python-brace-format
msgid "{wiki} seems to be down or unreachable." msgid "{wiki} seems to be down or unreachable."
msgstr "" msgstr ""
#: rcgcdw.py:1397 #: rcgcdw.py:1386
msgid "director" msgid "director"
msgstr "" msgstr ""
#: rcgcdw.py:1397 #: rcgcdw.py:1386
msgid "bot" msgid "bot"
msgstr "" msgstr ""
#: rcgcdw.py:1397 #: rcgcdw.py:1386
msgid "editor" msgid "editor"
msgstr "" msgstr ""
#: rcgcdw.py:1397 #: rcgcdw.py:1386
msgid "directors" msgid "directors"
msgstr "" msgstr ""
#: rcgcdw.py:1397 #: rcgcdw.py:1386
msgid "sysop" msgid "sysop"
msgstr "" msgstr ""
#: rcgcdw.py:1397 #: rcgcdw.py:1386
msgid "bureaucrat" msgid "bureaucrat"
msgstr "" msgstr ""
#: rcgcdw.py:1397 #: rcgcdw.py:1386
msgid "reviewer" msgid "reviewer"
msgstr "" msgstr ""
#: rcgcdw.py:1398 #: rcgcdw.py:1387
msgid "autoreview" msgid "autoreview"
msgstr "" msgstr ""
#: rcgcdw.py:1398 #: rcgcdw.py:1387
msgid "autopatrol" msgid "autopatrol"
msgstr "" msgstr ""
#: rcgcdw.py:1398 #: rcgcdw.py:1387
msgid "wiki_guardian" msgid "wiki_guardian"
msgstr "" msgstr ""
#: rcgcdw.py:1398 #: rcgcdw.py:1387
msgid "second" msgid "second"
msgid_plural "seconds" msgid_plural "seconds"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: rcgcdw.py:1398 #: rcgcdw.py:1387
msgid "minute" msgid "minute"
msgid_plural "minutes" msgid_plural "minutes"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: rcgcdw.py:1398 #: rcgcdw.py:1387
msgid "hour" msgid "hour"
msgid_plural "hours" msgid_plural "hours"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: rcgcdw.py:1398 #: rcgcdw.py:1387
msgid "day" msgid "day"
msgid_plural "days" msgid_plural "days"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: rcgcdw.py:1398 #: rcgcdw.py:1387
msgid "week" msgid "week"
msgid_plural "weeks" msgid_plural "weeks"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: rcgcdw.py:1398 #: rcgcdw.py:1387
msgid "month" msgid "month"
msgid_plural "months" msgid_plural "months"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: rcgcdw.py:1398 #: rcgcdw.py:1387
msgid "year" msgid "year"
msgid_plural "years" msgid_plural "years"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: rcgcdw.py:1398 #: rcgcdw.py:1387
msgid "millennium" msgid "millennium"
msgid_plural "millennia" msgid_plural "millennia"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: rcgcdw.py:1398 #: rcgcdw.py:1387
msgid "decade" msgid "decade"
msgid_plural "decades" msgid_plural "decades"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: rcgcdw.py:1398 #: rcgcdw.py:1387
msgid "century" msgid "century"
msgid_plural "centuries" msgid_plural "centuries"
msgstr[0] "" msgstr[0] ""

View file

@ -1395,6 +1395,8 @@ if TESTING:
recent_changes.ids = [1] recent_changes.ids = [1]
recent_changes.fetch(amount=5) recent_changes.fetch(amount=5)
day_overview() day_overview()
import discussions
discussions.fetch_discussions()
sys.exit(0) sys.exit(0)
while 1: while 1:

View file

@ -272,6 +272,10 @@
"discussion/reply": { "discussion/reply": {
"icon": "", "icon": "",
"color":null "color":null
},
"discussion/poll": {
"icon": "",
"color": null
} }
} }
}, },