From 8d54081316f54e7ef387804fa6c5c9d41521f642 Mon Sep 17 00:00:00 2001 From: Frisk Date: Sun, 26 Apr 2020 22:27:52 +0200 Subject: [PATCH] Added #115, additional enchantments --- discussions.pot | 46 +++-- discussions.py | 25 ++- locale/pl/LC_MESSAGES/discussions.mo | Bin 1060 -> 1517 bytes locale/pl/LC_MESSAGES/discussions.po | 33 +++- locale/pt-br/LC_MESSAGES/discussions.mo | Bin 0 -> 999 bytes locale/pt-br/LC_MESSAGES/discussions.po | 67 +++++++ misc.pot | 4 +- rcgcdw.pot | 252 ++++++++++++------------ rcgcdw.py | 2 + settings.json.example | 4 + 10 files changed, 280 insertions(+), 153 deletions(-) create mode 100644 locale/pt-br/LC_MESSAGES/discussions.mo create mode 100644 locale/pt-br/LC_MESSAGES/discussions.po diff --git a/discussions.pot b/discussions.pot index 48467a8..45b2dc0 100644 --- a/discussions.pot +++ b/discussions.pot @@ -1,41 +1,63 @@ +# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. # +#, fuzzy msgid "" msgstr "" -"Project-Id-Version: \n" +"Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-04-06 18:55+0200\n" -"PO-Revision-Date: 2020-04-23 23:41+0200\n" -"Last-Translator: Frisk \n" -"Language-Team: \n" -"Language: en_US\n" +"POT-Creation-Date: 2020-04-26 22:05+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \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" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Lokalize 19.12.3\n" #: discussions.py:53 #, python-brace-format msgid "Replied to \"{title}\"" msgstr "" -#: discussions.py:56 +#: discussions.py:58 #, python-brace-format msgid "Created \"{title}\"" 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 msgid "" "[{author}](<{url}f/u/{creatorId}>) created [{title}](<{url}f/p/{threadId}>) " "in {forumName}" msgstr "" -#: discussions.py:76 +#: 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 "" + +#: discussions.py:97 +#, python-brace-format +msgid "" +"[{author}](<{url}f/u/{creatorId}>) created a poll [{title}](<{url}f/p/" +"{threadId}>) in {forumName}" +msgstr "" diff --git a/discussions.py b/discussions.py index 07b1052..d073d9f 100644 --- a/discussions.py +++ b/discussions.py @@ -49,10 +49,12 @@ def embed_formatter(post, post_type): wikiurl=settings["fandom_discussions"]["wiki_url"], creatorId=post["creatorId"]), icon_url=post["createdBy"]["avatarUrl"]) if post_type == "TEXT": if post["isReply"]: + embed.event_type = "discussion/reply" embed["title"] = _("Replied to \"{title}\"").format(title=post["_embedded"]["thread"][0]["title"]) embed["url"] = "{wikiurl}f/p/{threadId}/r/{postId}".format( wikiurl=settings["fandom_discussions"]["wiki_url"], threadId=post["threadId"], postId=post["id"]) else: + embed.event_type = "discussion/post" embed["title"] = _("Created \"{title}\"").format(title=post["title"]) embed["url"] = "{wikiurl}f/p/{threadId}".format(wikiurl=settings["fandom_discussions"]["wiki_url"], threadId=post["threadId"]) @@ -63,8 +65,9 @@ def embed_formatter(post, post_type): embed["image"]["url"] = embed["description"].strip() embed["description"] = "" elif post_type == "POLL": + embed.event_type = "discussion/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 if poll["answers"][0]["image"] is not None: image_type = True @@ -81,13 +84,19 @@ def embed_formatter(post, post_type): def compact_formatter(post, post_type): """Compact formatter for Fandom discussions.""" message = None - if not post["isReply"]: - 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"]) - else: - 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"] - ) + if post_type == "TEXT": + if not post["isReply"]: + 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"]) + else: + 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"] + ) + 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)) diff --git a/locale/pl/LC_MESSAGES/discussions.mo b/locale/pl/LC_MESSAGES/discussions.mo index d0c7c005925e2534b52541d1d84588465d4604eb..b2f227b88f61ece217018d04692203676e618dfd 100644 GIT binary patch delta 476 zcmZXO&r1SP5XWa*s}=Lm4+tvjp@-}cGyf%TpIw+uTK-h%2H99XfQ7 zEyAEq9lQB2C`5lkhbTLDh>l(Qx|jqFeE7UKGjHD9D<6UC%Y^TW5PmQR(jW*PKrddw zICujK;0yG6CncgOI0PqP6+VYAU=B|Yp$3=W1LUsZ8Qec*^ul94B88|*n>a8ecHm>! zfSd3moPm?WL}B;|#vCtD8U*Ij2*6x#vC)17!wFA_w(>d`dYXmH!Vsoj2@f)y+4GiZ zGB5wPA#Mx9%CT~#ar5m4q-CFtw#IWTq-lryhF)aGDbMIf(XwZ)kT)w!n&w_g+lsoz zRCPVJ+Ip83rHwsNwDL}=Q;+f`#&aizF4|4za8VM4PTeZFf5Yj^$Cy0u%1+o>$a m*Db$1E8+8qyDJBk-?wf;UWs6fgq7qehdJqNyO}cntwKMN|7~^v delta 187 zcmaFMy@aFwo)F7a1|VPsVi_QI0b+I_&H-W&=m26tAnpWW5g?uo#8E)J0f<3j+>8ti zkw82Zh^2u1_e=~73P75RnSmh=NNWS>nLxS=NCTBH0HwhIWFHFygERwB90Ht+QWHy3 rQxue{OEODxQfrka%P{_)Je|pn!@x|z(89{pZ1Ynlb;iveEK-aB$VeH) diff --git a/locale/pl/LC_MESSAGES/discussions.po b/locale/pl/LC_MESSAGES/discussions.po index d220975..e8aa815 100644 --- a/locale/pl/LC_MESSAGES/discussions.po +++ b/locale/pl/LC_MESSAGES/discussions.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-04-06 18:55+0200\n" -"PO-Revision-Date: 2020-04-06 18:56+0200\n" +"POT-Creation-Date: 2020-04-26 22:05+0200\n" +"PO-Revision-Date: 2020-04-26 22:15+0200\n" "Last-Translator: \n" "Language-Team: \n" "Language: pl\n" @@ -24,12 +24,26 @@ msgstr "" msgid "Replied to \"{title}\"" msgstr "Odpowiedział(a) w „{title}”" -#: discussions.py:56 +#: discussions.py:58 #, python-brace-format msgid "Created \"{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 msgid "" "[{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}" ">) w {forumName}" -#: discussions.py:76 +#: discussions.py:92 #, python-brace-format msgid "" "[{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/" "{threadId}/r/{postId}>) pod tematem [{title}](<{url}f/p/{threadId}>) w " "{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}" diff --git a/locale/pt-br/LC_MESSAGES/discussions.mo b/locale/pt-br/LC_MESSAGES/discussions.mo new file mode 100644 index 0000000000000000000000000000000000000000..7a7c9a6b3d239ab16ad35f7908f697b5669aea2f GIT binary patch literal 999 zcmb7C(P|Sx6di3v*uJQUPd!q2?0HiqTeO}x{Rg~+=-ZO=T5pr z%(h8Sq=^LM^a?r1dFCeC%--!B2Si06|QmGZ?W1^SGXAo!%oyt$5M?WTKgcK*G)3R6V}pZ zY9p%Bd1)JAotB@C9Yr5CXmz*lyXWi!dk!3tnT(70>nCv literal 0 HcmV?d00001 diff --git a/locale/pt-br/LC_MESSAGES/discussions.po b/locale/pt-br/LC_MESSAGES/discussions.po new file mode 100644 index 0000000..f132340 --- /dev/null +++ b/locale/pt-br/LC_MESSAGES/discussions.po @@ -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 , 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 \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 "" diff --git a/misc.pot b/misc.pot index ac516c8..8b2322c 100644 --- a/misc.pot +++ b/misc.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\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" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,7 +17,7 @@ msgstr "" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -#: misc.py:120 +#: misc.py:123 msgid "" "\n" "__And more__" diff --git a/rcgcdw.pot b/rcgcdw.pot index 0fb1eea..eabec84 100644 --- a/rcgcdw.pot +++ b/rcgcdw.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\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" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -70,7 +70,7 @@ msgstr "" msgid "Battle.net handle" msgstr "" -#: rcgcdw.py:132 rcgcdw.py:856 +#: rcgcdw.py:132 rcgcdw.py:848 msgid "Unknown" msgstr "" @@ -151,7 +151,7 @@ msgid "" "* to [{target}]({target_url}){comment}" msgstr "" -#: rcgcdw.py:222 rcgcdw.py:631 +#: rcgcdw.py:222 rcgcdw.py:626 msgid "infinity and beyond" msgstr "" @@ -159,7 +159,7 @@ msgstr "" msgid " on pages: " msgstr "" -#: rcgcdw.py:246 rcgcdw.py:651 +#: rcgcdw.py:246 rcgcdw.py:646 msgid " and namespaces: " msgstr "" @@ -240,11 +240,11 @@ msgid "" "[{author}]({author_url}) edited the {field} on {target} profile. *({desc})*" 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" msgstr "" -#: rcgcdw.py:325 rcgcdw.py:719 +#: rcgcdw.py:325 rcgcdw.py:711 msgid "System" msgstr "" @@ -255,7 +255,7 @@ msgid "" "following settings: {settings}{comment}" 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]" msgstr "" @@ -419,7 +419,7 @@ msgstr "" msgid "An action has been hidden by administration." msgstr "" -#: rcgcdw.py:444 rcgcdw.py:735 +#: rcgcdw.py:445 rcgcdw.py:727 msgid "No description provided" msgstr "" @@ -435,559 +435,559 @@ msgstr "" msgid "b" msgstr "" -#: rcgcdw.py:512 rcgcdw.py:517 +#: rcgcdw.py:510 rcgcdw.py:515 msgid "__Only whitespace__" msgstr "" -#: rcgcdw.py:523 +#: rcgcdw.py:520 msgid "Removed" msgstr "" -#: rcgcdw.py:526 +#: rcgcdw.py:522 msgid "Added" msgstr "" -#: rcgcdw.py:560 rcgcdw.py:600 +#: rcgcdw.py:556 rcgcdw.py:595 msgid "Options" msgstr "" -#: rcgcdw.py:560 +#: rcgcdw.py:556 #, python-brace-format msgid "([preview]({link}) | [undo]({undolink}))" msgstr "" -#: rcgcdw.py:565 +#: rcgcdw.py:561 #, python-brace-format msgid "Uploaded a new version of {name}" msgstr "" -#: rcgcdw.py:567 +#: rcgcdw.py:563 #, python-brace-format msgid "Reverted a version of {name}" msgstr "" -#: rcgcdw.py:569 +#: rcgcdw.py:565 #, python-brace-format msgid "Uploaded {name}" msgstr "" -#: rcgcdw.py:585 +#: rcgcdw.py:581 msgid "**No license!**" msgstr "" -#: rcgcdw.py:597 +#: rcgcdw.py:593 msgid "" "\n" "License: {}" msgstr "" -#: rcgcdw.py:600 +#: rcgcdw.py:595 #, python-brace-format msgid "([preview]({link}))" msgstr "" -#: rcgcdw.py:605 +#: rcgcdw.py:600 #, python-brace-format msgid "Deleted page {article}" msgstr "" -#: rcgcdw.py:608 +#: rcgcdw.py:603 #, python-brace-format msgid "Deleted redirect {article} by overwriting" msgstr "" -#: rcgcdw.py:612 +#: rcgcdw.py:607 msgid "No redirect has been made" msgstr "" -#: rcgcdw.py:613 +#: rcgcdw.py:608 msgid "A redirect has been made" msgstr "" -#: rcgcdw.py:614 +#: rcgcdw.py:609 #, python-brace-format msgid "Moved {redirect}{article} to {target}" msgstr "" -#: rcgcdw.py:617 +#: rcgcdw.py:612 #, python-brace-format msgid "Moved {redirect}{article} to {title} over redirect" msgstr "" -#: rcgcdw.py:621 +#: rcgcdw.py:616 #, python-brace-format msgid "Moved protection settings from {redirect}{article} to {title}" msgstr "" -#: rcgcdw.py:644 +#: rcgcdw.py:639 msgid "Blocked from editing the following pages: " msgstr "" -#: rcgcdw.py:653 +#: rcgcdw.py:648 msgid "Blocked from editing pages on following namespaces: " msgstr "" -#: rcgcdw.py:667 +#: rcgcdw.py:659 msgid "Partial block details" msgstr "" -#: rcgcdw.py:668 +#: rcgcdw.py:660 #, python-brace-format msgid "Blocked {blocked_user} for {time}" msgstr "" -#: rcgcdw.py:672 +#: rcgcdw.py:664 #, python-brace-format msgid "Changed block settings for {blocked_user}" msgstr "" -#: rcgcdw.py:676 +#: rcgcdw.py:668 #, python-brace-format msgid "Unblocked {blocked_user}" msgstr "" -#: rcgcdw.py:681 +#: rcgcdw.py:673 #, python-brace-format msgid "Left a comment on {target}'s profile" msgstr "" -#: rcgcdw.py:683 +#: rcgcdw.py:675 msgid "Left a comment on their own profile" msgstr "" -#: rcgcdw.py:688 +#: rcgcdw.py:680 #, python-brace-format msgid "Replied to a comment on {target}'s profile" msgstr "" -#: rcgcdw.py:690 +#: rcgcdw.py:682 msgid "Replied to a comment on their own profile" msgstr "" -#: rcgcdw.py:695 +#: rcgcdw.py:687 #, python-brace-format msgid "Edited a comment on {target}'s profile" msgstr "" -#: rcgcdw.py:697 +#: rcgcdw.py:689 msgid "Edited a comment on their own profile" msgstr "" -#: rcgcdw.py:700 +#: rcgcdw.py:692 #, python-brace-format msgid "Edited {target}'s profile" msgstr "" -#: rcgcdw.py:700 +#: rcgcdw.py:692 msgid "Edited their own profile" msgstr "" -#: rcgcdw.py:702 +#: rcgcdw.py:694 #, python-brace-format msgid "Cleared the {field} field" msgstr "" -#: rcgcdw.py:704 +#: rcgcdw.py:696 #, python-brace-format msgid "{field} field changed to: {desc}" msgstr "" -#: rcgcdw.py:707 +#: rcgcdw.py:699 #, python-brace-format msgid "Purged a comment on {target}'s profile" msgstr "" -#: rcgcdw.py:713 +#: rcgcdw.py:705 #, python-brace-format msgid "Deleted a comment on {target}'s profile" msgstr "" -#: rcgcdw.py:717 +#: rcgcdw.py:709 #, python-brace-format msgid "Changed group membership for {target}" msgstr "" -#: rcgcdw.py:721 +#: rcgcdw.py:713 #, python-brace-format msgid "{target} got autopromoted to a new usergroup" msgstr "" -#: rcgcdw.py:736 +#: rcgcdw.py:728 #, python-brace-format msgid "Groups changed from {old_groups} to {new_groups}{reason}" msgstr "" -#: rcgcdw.py:740 +#: rcgcdw.py:732 #, python-brace-format msgid "Protected {target}" msgstr "" -#: rcgcdw.py:746 +#: rcgcdw.py:738 #, python-brace-format msgid "Changed protection level for {article}" msgstr "" -#: rcgcdw.py:752 +#: rcgcdw.py:744 #, python-brace-format msgid "Removed protection from {article}" msgstr "" -#: rcgcdw.py:756 +#: rcgcdw.py:748 #, python-brace-format msgid "Changed visibility of revision on page {article} " msgid_plural "Changed visibility of {amount} revisions on page {article} " msgstr[0] "" msgstr[1] "" -#: rcgcdw.py:761 +#: rcgcdw.py:753 #, python-brace-format msgid "Imported {article} with {count} revision" msgid_plural "Imported {article} with {count} revisions" msgstr[0] "" msgstr[1] "" -#: rcgcdw.py:766 +#: rcgcdw.py:758 #, python-brace-format msgid "Restored {article}" msgstr "" -#: rcgcdw.py:769 +#: rcgcdw.py:761 msgid "Changed visibility of log events" msgstr "" -#: rcgcdw.py:772 +#: rcgcdw.py:764 msgid "Imported interwiki" msgstr "" -#: rcgcdw.py:775 +#: rcgcdw.py:767 #, python-brace-format msgid "Edited abuse filter number {number}" msgstr "" -#: rcgcdw.py:778 +#: rcgcdw.py:770 #, python-brace-format msgid "Created abuse filter number {number}" msgstr "" -#: rcgcdw.py:781 +#: rcgcdw.py:773 #, python-brace-format msgid "Merged revision histories of {article} into {dest}" msgstr "" -#: rcgcdw.py:785 +#: rcgcdw.py:777 msgid "Added an entry to the interwiki table" msgstr "" -#: rcgcdw.py:786 rcgcdw.py:792 +#: rcgcdw.py:778 rcgcdw.py:784 #, python-brace-format msgid "Prefix: {prefix}, website: {website} | {desc}" msgstr "" -#: rcgcdw.py:791 +#: rcgcdw.py:783 msgid "Edited an entry in interwiki table" msgstr "" -#: rcgcdw.py:797 +#: rcgcdw.py:789 msgid "Deleted an entry in interwiki table" msgstr "" -#: rcgcdw.py:798 +#: rcgcdw.py:790 #, python-brace-format msgid "Prefix: {prefix} | {desc}" msgstr "" -#: rcgcdw.py:801 +#: rcgcdw.py:793 #, python-brace-format msgid "Changed the content model of the page {article}" msgstr "" -#: rcgcdw.py:802 +#: rcgcdw.py:794 #, python-brace-format msgid "Model changed from {old} to {new}: {reason}" msgstr "" -#: rcgcdw.py:807 +#: rcgcdw.py:799 #, python-brace-format msgid "Edited the sprite for {article}" msgstr "" -#: rcgcdw.py:810 +#: rcgcdw.py:802 #, python-brace-format msgid "Created the sprite sheet for {article}" msgstr "" -#: rcgcdw.py:813 +#: rcgcdw.py:805 #, python-brace-format msgid "Edited the slice for {article}" msgstr "" -#: rcgcdw.py:819 +#: rcgcdw.py:811 #, python-brace-format msgid "Created the Cargo table \"{table}\"" msgstr "" -#: rcgcdw.py:823 +#: rcgcdw.py:815 #, python-brace-format msgid "Deleted the Cargo table \"{table}\"" msgstr "" -#: rcgcdw.py:830 +#: rcgcdw.py:822 #, python-brace-format msgid "Recreated the Cargo table \"{table}\"" msgstr "" -#: rcgcdw.py:837 +#: rcgcdw.py:829 #, python-brace-format msgid "Replaced the Cargo table \"{table}\"" msgstr "" -#: rcgcdw.py:841 +#: rcgcdw.py:833 #, python-brace-format msgid "Created a tag \"{tag}\"" msgstr "" -#: rcgcdw.py:845 +#: rcgcdw.py:837 #, python-brace-format msgid "Deleted a tag \"{tag}\"" msgstr "" -#: rcgcdw.py:849 +#: rcgcdw.py:841 #, python-brace-format msgid "Activated a tag \"{tag}\"" msgstr "" -#: rcgcdw.py:852 +#: rcgcdw.py:844 #, python-brace-format msgid "Deactivated a tag \"{tag}\"" msgstr "" -#: rcgcdw.py:855 +#: rcgcdw.py:847 msgid "Action has been hidden by administration." msgstr "" -#: rcgcdw.py:884 +#: rcgcdw.py:867 msgid "Tags" msgstr "" -#: rcgcdw.py:889 +#: rcgcdw.py:870 msgid "**Added**: " msgstr "" -#: rcgcdw.py:889 +#: rcgcdw.py:870 msgid " and {} more\n" msgstr "" -#: rcgcdw.py:890 +#: rcgcdw.py:871 msgid "**Removed**: " msgstr "" -#: rcgcdw.py:890 +#: rcgcdw.py:871 msgid " and {} more" msgstr "" -#: rcgcdw.py:891 +#: rcgcdw.py:872 msgid "Changed categories" msgstr "" -#: rcgcdw.py:911 +#: rcgcdw.py:889 msgid "~~hidden~~" msgstr "" -#: rcgcdw.py:917 +#: rcgcdw.py:895 msgid "hidden" msgstr "" -#: rcgcdw.py:984 rcgcdw.py:986 rcgcdw.py:988 rcgcdw.py:990 rcgcdw.py:992 -#: rcgcdw.py:994 rcgcdw.py:996 +#: rcgcdw.py:965 rcgcdw.py:967 rcgcdw.py:969 rcgcdw.py:971 rcgcdw.py:973 +#: rcgcdw.py:975 rcgcdw.py:977 #, python-brace-format msgid "{value} (avg. {avg})" msgstr "" -#: rcgcdw.py:1020 rcgcdw.py:1048 +#: rcgcdw.py:1001 rcgcdw.py:1026 msgid "Daily overview" msgstr "" -#: rcgcdw.py:1022 +#: rcgcdw.py:1003 msgid "No activity" msgstr "" -#: rcgcdw.py:1057 +#: rcgcdw.py:1032 msgid " ({} action)" msgid_plural " ({} actions)" msgstr[0] "" msgstr[1] "" -#: rcgcdw.py:1059 +#: rcgcdw.py:1034 msgid " ({} edit)" msgid_plural " ({} edits)" msgstr[0] "" msgstr[1] "" -#: rcgcdw.py:1064 +#: rcgcdw.py:1039 msgid " UTC ({} action)" msgid_plural " UTC ({} actions)" msgstr[0] "" msgstr[1] "" -#: rcgcdw.py:1066 rcgcdw.py:1067 rcgcdw.py:1071 +#: rcgcdw.py:1041 rcgcdw.py:1042 rcgcdw.py:1046 msgid "But nobody came" msgstr "" -#: rcgcdw.py:1075 +#: rcgcdw.py:1049 msgid "Most active user" msgid_plural "Most active users" msgstr[0] "" msgstr[1] "" -#: rcgcdw.py:1076 +#: rcgcdw.py:1050 msgid "Most edited article" msgid_plural "Most edited articles" msgstr[0] "" msgstr[1] "" -#: rcgcdw.py:1077 +#: rcgcdw.py:1051 msgid "Edits made" msgstr "" -#: rcgcdw.py:1077 +#: rcgcdw.py:1051 msgid "New files" msgstr "" -#: rcgcdw.py:1077 +#: rcgcdw.py:1051 msgid "Admin actions" msgstr "" -#: rcgcdw.py:1078 +#: rcgcdw.py:1052 msgid "Bytes changed" msgstr "" -#: rcgcdw.py:1078 +#: rcgcdw.py:1052 msgid "New articles" msgstr "" -#: rcgcdw.py:1079 +#: rcgcdw.py:1053 msgid "Unique contributors" msgstr "" -#: rcgcdw.py:1080 +#: rcgcdw.py:1054 msgid "Most active hour" msgid_plural "Most active hours" msgstr[0] "" msgstr[1] "" -#: rcgcdw.py:1081 +#: rcgcdw.py:1055 msgid "Day score" msgstr "" -#: rcgcdw.py:1223 +#: rcgcdw.py:1196 #, python-brace-format msgid "Connection to {wiki} seems to be stable now." msgstr "" -#: rcgcdw.py:1224 rcgcdw.py:1339 +#: rcgcdw.py:1197 rcgcdw.py:1312 msgid "Connection status" msgstr "" -#: rcgcdw.py:1338 +#: rcgcdw.py:1311 #, python-brace-format msgid "{wiki} seems to be down or unreachable." msgstr "" -#: rcgcdw.py:1397 +#: rcgcdw.py:1386 msgid "director" msgstr "" -#: rcgcdw.py:1397 +#: rcgcdw.py:1386 msgid "bot" msgstr "" -#: rcgcdw.py:1397 +#: rcgcdw.py:1386 msgid "editor" msgstr "" -#: rcgcdw.py:1397 +#: rcgcdw.py:1386 msgid "directors" msgstr "" -#: rcgcdw.py:1397 +#: rcgcdw.py:1386 msgid "sysop" msgstr "" -#: rcgcdw.py:1397 +#: rcgcdw.py:1386 msgid "bureaucrat" msgstr "" -#: rcgcdw.py:1397 +#: rcgcdw.py:1386 msgid "reviewer" msgstr "" -#: rcgcdw.py:1398 +#: rcgcdw.py:1387 msgid "autoreview" msgstr "" -#: rcgcdw.py:1398 +#: rcgcdw.py:1387 msgid "autopatrol" msgstr "" -#: rcgcdw.py:1398 +#: rcgcdw.py:1387 msgid "wiki_guardian" msgstr "" -#: rcgcdw.py:1398 +#: rcgcdw.py:1387 msgid "second" msgid_plural "seconds" msgstr[0] "" msgstr[1] "" -#: rcgcdw.py:1398 +#: rcgcdw.py:1387 msgid "minute" msgid_plural "minutes" msgstr[0] "" msgstr[1] "" -#: rcgcdw.py:1398 +#: rcgcdw.py:1387 msgid "hour" msgid_plural "hours" msgstr[0] "" msgstr[1] "" -#: rcgcdw.py:1398 +#: rcgcdw.py:1387 msgid "day" msgid_plural "days" msgstr[0] "" msgstr[1] "" -#: rcgcdw.py:1398 +#: rcgcdw.py:1387 msgid "week" msgid_plural "weeks" msgstr[0] "" msgstr[1] "" -#: rcgcdw.py:1398 +#: rcgcdw.py:1387 msgid "month" msgid_plural "months" msgstr[0] "" msgstr[1] "" -#: rcgcdw.py:1398 +#: rcgcdw.py:1387 msgid "year" msgid_plural "years" msgstr[0] "" msgstr[1] "" -#: rcgcdw.py:1398 +#: rcgcdw.py:1387 msgid "millennium" msgid_plural "millennia" msgstr[0] "" msgstr[1] "" -#: rcgcdw.py:1398 +#: rcgcdw.py:1387 msgid "decade" msgid_plural "decades" msgstr[0] "" msgstr[1] "" -#: rcgcdw.py:1398 +#: rcgcdw.py:1387 msgid "century" msgid_plural "centuries" msgstr[0] "" diff --git a/rcgcdw.py b/rcgcdw.py index 404ebc4..429ef17 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -1395,6 +1395,8 @@ if TESTING: recent_changes.ids = [1] recent_changes.fetch(amount=5) day_overview() + import discussions + discussions.fetch_discussions() sys.exit(0) while 1: diff --git a/settings.json.example b/settings.json.example index 9b5b50b..cf1025b 100644 --- a/settings.json.example +++ b/settings.json.example @@ -272,6 +272,10 @@ "discussion/reply": { "icon": "", "color":null + }, + "discussion/poll": { + "icon": "", + "color": null } } },