From 5f3994097131f3a24add04d953c2566ef1cd803d Mon Sep 17 00:00:00 2001 From: Frisk Date: Mon, 18 Jun 2018 11:30:05 +0200 Subject: [PATCH] Added language switch, new translations, fixes --- README.md | 2 +- locale/de/LC_MESSAGES/rcgcdw.mo | Bin 0 -> 6029 bytes locale/de/LC_MESSAGES/rcgcdw.po | 301 +++++++++++++++++++++++++ locale/pl/LC_MESSAGES/rcgcdw.mo | Bin 5351 -> 6022 bytes locale/pl/LC_MESSAGES/rcgcdw.po | 382 +++++++++++++++++++------------- rcgcdw.pot | 362 +++++++++++++++++------------- rcgcdw.py | 100 +++++---- 7 files changed, 795 insertions(+), 352 deletions(-) create mode 100644 locale/de/LC_MESSAGES/rcgcdw.mo create mode 100644 locale/de/LC_MESSAGES/rcgcdw.po diff --git a/README.md b/README.md index 19b4dda..1351b03 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Recent changes Gamepedia compatible Discord webhook is a project made from earli * **Python3 3.6>** * requests 2.18.4> * beautifulsoup4 4.6.0> -^ lxml 4.2.1> +* lxml 4.2.1> ### Features ### * Fetch recent changes from Gamepedia wiki and send them to Discord channel using a webhook diff --git a/locale/de/LC_MESSAGES/rcgcdw.mo b/locale/de/LC_MESSAGES/rcgcdw.mo new file mode 100644 index 0000000000000000000000000000000000000000..8883c5f2df37e8787d008e9cf9838572fee645bc GIT binary patch literal 6029 zcmbW4TWlOx8GuhqDd2KROGzlbaN^R|PP2~frm1l+)Jg0#*iJ+2q%Bbt&CVR}9z1(y zH8X3+-mWT8g#@B6NIZb5!b1@fLP6r8LRENjK>`WUCmulX0z#^w0tt9PMTqa8nVsFW zoun}G*>5iA@}K{9e*gZqo4%pAPSEb6E#Ih=2fua`KU{lmR_eX*RyYFp!H>cx;YZ*y z{5TBY`(X#}gI|XC!B^mZ_y!z>e=6SZd7o1E^Lzvzf)}8MFTum`GQ1W30e%er6H5PE zSmX{k2_Jw9P`;<|UiekG7hZ<4-cO;7`)l!i?+26`=6M?4124c&!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cgcdw.po new file mode 100644 index 0000000..16bf80f --- /dev/null +++ b/locale/de/LC_MESSAGES/rcgcdw.po @@ -0,0 +1,301 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR ORGANIZATION +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"POT-Creation-Date: 2018-06-18 11:12+0200\n" +"PO-Revision-Date: 2018-06-18 11:24+0200\n" +"Last-Translator: Frisk \n" +"Language-Team: \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: pygettext.py 1.5\n" +"X-Generator: Poedit 2.0.8\n" + +#: rcgcdw.py:84 +msgid "(N!) " +msgstr "(N!) " + +#: rcgcdw.py:84 +msgid "m " +msgstr "K " + +#: rcgcdw.py:98 +msgid "Uploaded a new version of {name}" +msgstr "Neue Dateiversion {name}" + +#: rcgcdw.py:99 +msgid "([preview]({link}) | [undo]({undolink}))" +msgstr "([Vorschau]({link}) | [zurücksetzen]({undolink}))" + +#: rcgcdw.py:99 rcgcdw.py:115 +msgid "Options" +msgstr "Optionen" + +#: rcgcdw.py:101 +msgid "Uploaded {name}" +msgstr "Neue Datei {name}" + +#: rcgcdw.py:108 +msgid "**No license!**" +msgstr "**Keine Lizenz!**" + +#: rcgcdw.py:115 +msgid "([preview]({link}))" +msgstr "([Vorschau]({link}))" + +#: rcgcdw.py:116 +msgid "" +"{desc}\n" +"License: {license}" +msgstr "" +"{desc}\n" +"Lizenz: {license}" + +#: rcgcdw.py:121 +msgid "Deleted page {article}" +msgstr "Löschte {article}" + +#: rcgcdw.py:126 +msgid "Deleted redirect {article} by overwriting" +msgstr "Löschte die Weiterleitung {article} um Platz zu machen" + +#: rcgcdw.py:130 +msgid "A redirect has been made" +msgstr "Eine Weiterleitung wurde erstellt" + +#: rcgcdw.py:130 +msgid "No redirect has been made" +msgstr "Die Erstellung einer Weiterleitung wurde unterdrückt" + +#: rcgcdw.py:131 +msgid "Moved {article} to {target}" +msgstr "Verschob {article} nach {target}" + +#: rcgcdw.py:134 +msgid "Moved {article} to {title} over redirect" +msgstr "Verschob {article} nach {target} und überschrieb eine Weiterleitung\"" + +#: rcgcdw.py:138 +msgid "Moved protection settings from {article} to {title}" +msgstr "Verschob die Schutzeinstellungen von {article} nach {title}" + +#: rcgcdw.py:143 +msgid "infinity and beyond" +msgstr "alle Ewigkeit" + +#: rcgcdw.py:144 +msgid "Blocked {blocked_user} for {time}" +msgstr "Sperrte {blocked_user} für {time}" + +#: rcgcdw.py:150 +msgid "Changed block settings for {blocked_user}" +msgstr "Änderte die Sperreinstellungen für {blocked_user}" + +#: rcgcdw.py:156 +msgid "Unblocked {blocked_user}" +msgstr "Hob die Sperre von {blocked_user} auf" + +#: rcgcdw.py:161 +msgid "Left a comment on {target}'s profile" +msgstr "Hinterließ ein Kommentar auf dem Profil von {target}" + +#: rcgcdw.py:164 +msgid "Replied to a comment on {target}'s profile" +msgstr "Antwortete auf ein Kommentar auf dem Profil von {target}" + +#: rcgcdw.py:167 +msgid "Edited a comment on {target}'s profile" +msgstr "Bearbeitete ein Kommentar auf dem Profil von {target}" + +#: rcgcdw.py:171 +msgid "Location" +msgstr "Wohnort" + +#: rcgcdw.py:173 +msgid "About me" +msgstr "\"Über mich\"-Abschnitt" + +#: rcgcdw.py:175 +msgid "Google link" +msgstr "Google-Konto" + +#: rcgcdw.py:177 +msgid "Facebook link" +msgstr "Facebook-Seite" + +#: rcgcdw.py:179 +msgid "Twitter link" +msgstr "Twitter-Benutzernamen" + +#: rcgcdw.py:181 +msgid "Reddit link" +msgstr "Reddit-Benutzernamen" + +#: rcgcdw.py:183 +msgid "Twitch link" +msgstr "Twitch-Account" + +#: rcgcdw.py:185 +msgid "PSN link" +msgstr "PSN-Account" + +#: rcgcdw.py:187 +msgid "VK link" +msgstr "VK-Account" + +#: rcgcdw.py:189 +msgid "XVL link" +msgstr "Xbox-Live-Tag" + +#: rcgcdw.py:191 +msgid "Steam link" +msgstr "Steam-Account" + +#: rcgcdw.py:193 +msgid "Unknown" +msgstr "Unbekannt" + +#: rcgcdw.py:194 +msgid "Edited {target}'s profile" +msgstr "Bearbeitete das Profil von {target}" + +#: rcgcdw.py:195 +msgid "{field} field changed to: {desc}" +msgstr "{field} geändert zu: {desc}" + +#: rcgcdw.py:198 +msgid "Deleted a comment on {target}'s profile" +msgstr "Löschte ein Kommentar auf dem Profil von {target}" + +#: rcgcdw.py:201 +msgid "Changed group membership for {target}" +msgstr "Änderte die Gruppenzugehörigkeit von {target}" + +#: rcgcdw.py:205 rcgcdw.py:207 +msgid "none" +msgstr "keine" + +#: rcgcdw.py:208 rcgcdw.py:302 +msgid "No description provided" +msgstr "Keine Zusammenfassung angegeben" + +#: rcgcdw.py:209 +msgid "Groups changed from {old_groups} to {new_groups} {reason}" +msgstr "Änderte die Gruppenzugehörigkeit von {old_groups} auf {new_groups}: {reason}" + +#: rcgcdw.py:212 +msgid "Protected {target}" +msgstr "Schützte {target}" + +#: rcgcdw.py:217 +msgid "Changed protection level for {article}" +msgstr "Änderte den Schutzstatus von {article}" + +#: rcgcdw.py:222 +msgid "Removed protection from {article}" +msgstr "Entfernte den Schutz von {article}" + +#: rcgcdw.py:226 +msgid "Changed visibility of revision(s) on page {article} " +msgstr "Änderte die Sichtbarkeit einiger Versionen von {article}" + +#: rcgcdw.py:229 +msgid "Imported {article} with {count} revision(s)" +msgstr "Importierte {article} mit {count} Versionen" + +#: rcgcdw.py:232 +msgid "Restored {article}" +msgstr "Stellte {article} wieder her" + +#: rcgcdw.py:235 +msgid "Changed visibility of log events" +msgstr "Änderte die Sichtbarkeit eines Logbucheintrags" + +#: rcgcdw.py:238 +msgid "Imported interwiki" +msgstr "Importierte Interwiki" + +#: rcgcdw.py:241 +msgid "Edited abuse filter number {number}" +msgstr "Änderte Missbrauchsfilter {number}" + +#: rcgcdw.py:244 +msgid "Merged revision histories of {article} into {dest}" +msgstr "Vereinigte Versionsgeschichten von {article} in {dest}" + +#: rcgcdw.py:247 +msgid "Added an entry to the interwiki table" +msgstr "Fügte ein Interwiki-Präfix hinzu" + +#: rcgcdw.py:248 rcgcdw.py:252 +msgid "Prefix: {prefix}, website: {website} | {desc}" +msgstr "Präfix: {prefix}, URL: {website} | {desc}" + +#: rcgcdw.py:251 +msgid "Edited an entry in interwiki table" +msgstr "Änderte ein Interwiki-Präfix" + +#: rcgcdw.py:255 +msgid "Deleted an entry in interwiki table" +msgstr "Entfernte ein Interwiki-Präfix" + +#: rcgcdw.py:256 +msgid "Prefix: {prefix} | {desc}" +msgstr "Präfix: {prefix} | {desc}" + +#: rcgcdw.py:259 +msgid "Changed the content model of the page {article}" +msgstr "Änderte das Inhaltsmodell von {article}" + +#: rcgcdw.py:260 +msgid "Model changed from {old} to {new}: {reason}" +msgstr "Modell geändert von {old} zu {new}: {reason}" + +#: rcgcdw.py:263 +msgid "Edited the sprite for {article}" +msgstr "Edited the sprite for {article}" + +#: rcgcdw.py:266 +msgid "Created the sprite sheet for {article}" +msgstr "Created the sprite sheet for {article}" + +#: rcgcdw.py:269 +msgid "Edited the slice for {article}" +msgstr "Edited the slice for {article}" + +#: rcgcdw.py:272 +msgid "Created a tag \"{tag}\"" +msgstr "Erstellte die Markierung \"{tag}\"" + +#: rcgcdw.py:275 +msgid "Deleted a tag \"{tag}\"" +msgstr "Löschte die Markierung \"{tag}\"" + +#: rcgcdw.py:278 +msgid "Activated a tag \"{tag}\"" +msgstr "Aktivierte die Markierung \"{tag}\"" + +#: rcgcdw.py:281 +msgid "Deactivated a tag \"{tag}\"" +msgstr "Deaktivierte die Markierung \"{tag}\"" + +#: rcgcdw.py:387 +msgid "Unable to process the event" +msgstr "Ereignis kann nicht verabreitet werden" + +#: rcgcdw.py:387 +msgid "error" +msgstr "Fehler" + +#: rcgcdw.py:485 +msgid "Connection status" +msgstr "Verbindungsstatus" + +#: rcgcdw.py:485 +msgid "{wiki} seems to be down or unreachable." +msgstr "{wiki} scheint unerreichbar zu sein." diff --git a/locale/pl/LC_MESSAGES/rcgcdw.mo b/locale/pl/LC_MESSAGES/rcgcdw.mo index 85660d5475c6571e1dfa1b3291e35703f5e1a085..fb2db582039c46da3a6acf91b24e22f4aca8e246 100644 GIT binary patch literal 6022 zcmb7{TZ|-C8GsLnsDt2g7ZE&wEHeu|+cSG%=-pY^Wp+0kW-l%?8`u@Gy6Q|%O;^|H zR8>#Y-P;eYu0~NGOpGBK6Qd8t7@}a*7<^*pQDThoL831v8e`NL!-K>JzrU)wx_fp2 zsZ8}(m%q+A|MmRy$D6MCy5cy_`BBcLtCe!#m#^W6W5=~hy%*jHC*kezX80KV5L|*E zh8}!B?8DpP=i&YE+wdN^0jJ=f^XEI>r_@gF_ru-r8K~h`;9mG5yb=Bh-U{D7Q7z*6kZ26 z;3M$Y@FqAhq11!$F8FbH0y4A;;Vf+D?|%UIaQ{1aC!AogNw^b=eNID}uLe;~eFn-n zU(BC>4VJk7A(VN45BXDn=SS@MAGizN`N8b{G00TvX()0Yj{PY5p`Cft= z{sM|0U(cWa4az$H4aM*Oh2rn4F$$rfZi5mUcR*SH-B80hDE@dFzH}A(K>2PLj4Ge-+l(gAFn~N??0gEdGn4eP7Xn_V+bX_z5(xozl1aJbtv|| zp5T$VxF5W@4|=SYf$`f?Je1OH^4IY`{6-YgC+Pqcntmqihb@t zDOqP3ihWN)@z;}3^!p@~dDfxGe+SBXehww>H{b#Im;C*G2ua*jpvWDCxLkb#irqey z^RrOq`973!ehgWX`YjYa{+hr47ZiWK31z&iP+sEZdMI(T1AYYF3T2(;oEIQrqvkj< zY5EONq+RM~+?v)2$#IDfS&Pgw!zssf26YsQ-41hV&OMxRh^-#ulsTCyJ>J8w=qP^O z%PIC3AL5$Sb`|&tryOFl1x~TO9O8Si+kUyp5AoA%el4~UKT7Tq!l_MBo98^v`8cN>V#BHQD$66e#C7TMD8Dywiao^#qsN2XNIX0+`f$s&(-I$RkMp{Td|4ydc{V%m-r3SSC6kcVGW5?K*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$&XU`lfFOKC% zm8J~KN41B1qFZ&o*ig1`TxuE8T$3ix*u#$y7@iQ^T0K(!m1N4#sbFwl4cqRYouIOjB&!T4?MPX6Fp<@a;>6$F^s} zJ|Ybv+?Q=7L(>ylNw&(ngd@fm+R!D@a|H)GhoCWS62et8b@sUyqiW+^S4oYS!Nu${ zdSCRAL(TS8PfZ-3u~aLJVcB^5dSWrPR&AOo&CV2_2-7a_^T2Fh+PduZF}3Wnvzg{* zs`?oBPSqZM2Q!Y+I6E7~T5VmynV2kG#=YY!aojg;9%T2?Y$Yxl(A{a1Y`xC0^^FL3 zJ}pUuw28>R8>pH>qmzln^C?hABsMi^+fYd&!ai9OX94#{dLc*6*Rg1r)Y9Uwm zj34Kz?3_@pTuE&--o)3_FK&k~CFzu41Ps!d&pa zXvlt`B%*%%n>$unqv%2r<+e0g-N2p`)y!46-|to@&R4MASQ|gG?`RJ$V77kap4pV*(Y$WGSK9DRhtW5?!s6>#)_p+mQEE z@VIj)5K9yF4&9KH$}-!MQ=Qn>70Bh82i-_U67E8(+`djyl>CIhb;Y@GD*a6y?0X2W zaf0b3K8`&(ePX5w_fs@XpUv@D=_jxX!mFoz1B0hUQD4gzO3FK=zW3P4s*m%BO0N%Z z7~1JQYzP69^upg=!#|pcqAaA~d-AF8uAB&|mmA;fCsrWsOzay%eJ!+L4LWQ7U8^SO z==C+Om95uVBNXkaY6*uHzRb&|z@Sna)lAvRH2KjaA47Voa3ar>3AQf@-iaH00|g*Q Or@;m;w?s#a3j067{YH}j diff --git a/locale/pl/LC_MESSAGES/rcgcdw.po b/locale/pl/LC_MESSAGES/rcgcdw.po index c6cfdaf..eee1b08 100644 --- a/locale/pl/LC_MESSAGES/rcgcdw.po +++ b/locale/pl/LC_MESSAGES/rcgcdw.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: RcGcDw\n" -"POT-Creation-Date: 2018-06-16 14:38+0200\n" -"PO-Revision-Date: 2018-06-16 14:44+0200\n" +"POT-Creation-Date: 2018-06-18 11:12+0200\n" +"PO-Revision-Date: 2018-06-18 11:15+0200\n" "Last-Translator: Frisk \n" "Language-Team: \n" "Language: pl\n" @@ -18,27 +18,39 @@ msgstr "" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" -#: rcgcdw.py:90 -msgid "New file version {name}" -msgstr "Nowa wersja pliku (name)" +#: rcgcdw.py:84 +msgid "(N!) " +msgstr "(N!) " -#: rcgcdw.py:91 +#: rcgcdw.py:84 +msgid "m " +msgstr "d " + +#: rcgcdw.py:98 +msgid "Uploaded a new version of {name}" +msgstr "Przesłał(a) nową wersję {name}" + +#: rcgcdw.py:99 msgid "([preview]({link}) | [undo]({undolink}))" msgstr "([podgląd]({link}) | [wycofaj]({undolink}))" -#: rcgcdw.py:91 rcgcdw.py:107 +#: rcgcdw.py:99 rcgcdw.py:115 msgid "Options" msgstr "Opcje" -#: rcgcdw.py:93 -msgid "New file {name}" -msgstr "Nowy plik {name}" +#: rcgcdw.py:101 +msgid "Uploaded {name}" +msgstr "Przesłał(a) {name}" -#: rcgcdw.py:107 +#: rcgcdw.py:108 +msgid "**No license!**" +msgstr "**Brak licencji!**" + +#: rcgcdw.py:115 msgid "([preview]({link}))" msgstr "([podgląd]({link})" -#: rcgcdw.py:108 +#: rcgcdw.py:116 msgid "" "{desc}\n" "License: {license}" @@ -46,209 +58,275 @@ msgstr "" "{desc}\n" "Licencja: {license}" -#: rcgcdw.py:113 -msgid "Deleted {article}" -msgstr "Usunięto {article}" +#: rcgcdw.py:121 +msgid "Deleted page {article}" +msgstr "Usunął/usunęła {article}" -#: rcgcdw.py:118 -msgid "Deleted redirect ({article}) to make space for moved page" +#: rcgcdw.py:126 +msgid "Deleted redirect {article} by overwriting" msgstr "" -"Usunięto przekierowanie ({article}) aby utworzyć miejsce dla przenoszonej " -"strony" +"Usunął/usunęła przekierowanie ({article}) aby utworzyć miejsce dla " +"przenoszonej strony" -#: rcgcdw.py:122 +#: rcgcdw.py:130 msgid "A redirect has been made" msgstr "Zostało utworzone przekierowanie" -#: rcgcdw.py:122 +#: rcgcdw.py:130 msgid "No redirect has been made" msgstr "Nie utworzono przekierowania" -#: rcgcdw.py:123 -msgid "Moved \"{article}\" to \"{target}\"" -msgstr "Przeniesiono \"{article}\" do \"{target}\"" +#: rcgcdw.py:131 +msgid "Moved {article} to {target}" +msgstr "Przeniósł/przeniosła {article} do {target}" -#: rcgcdw.py:126 -msgid "Moved {article} to redirect page ({title})" -msgstr "Przeniesiono {article} do przekierowania ({title})" +#: rcgcdw.py:134 +msgid "Moved {article} to {title} over redirect" +msgstr "Przeniósł/przeniosła {article} do strony przekierowującej {target}" -#: rcgcdw.py:130 +#: rcgcdw.py:138 msgid "Moved protection settings from {article} to {title}" msgstr "Przeniesiono ustawienia zabezpieczeń z {article} do {title}" -#: rcgcdw.py:135 +#: rcgcdw.py:143 msgid "infinity and beyond" msgstr "wieczność" -#: rcgcdw.py:136 +#: rcgcdw.py:144 msgid "Blocked {blocked_user} for {time}" msgstr "Zablokowano {blocked_user} na {time}" -#: rcgcdw.py:142 -msgid "Reapplied the block on {blocked_user}" -msgstr "Ponownie nałożono blokadę na {blocked_user}" +#: rcgcdw.py:150 +msgid "Changed block settings for {blocked_user}" +msgstr "Zmienił ustawienia blokady {blocked_user}" -#: rcgcdw.py:148 -msgid "Removed the block on {blocked_user}" -msgstr "Usunięto blokadę na {blocked_user}" +#: rcgcdw.py:156 +msgid "Unblocked {blocked_user}" +msgstr "Zablokował {blocked_user} na {time}" -#: rcgcdw.py:153 +#: rcgcdw.py:161 msgid "Left a comment on {target}'s profile" msgstr "Pozostawiono komentarz na profilu użytkownika {target}" -#: rcgcdw.py:156 +#: rcgcdw.py:164 msgid "Replied to a comment on {target}'s profile" msgstr "Odpowiedziano na komentarz na profilu użytkownika {target}" -#: rcgcdw.py:159 +#: rcgcdw.py:167 msgid "Edited a comment on {target}'s profile" msgstr "Edytowano komentarz na profilu użytkownika {target}" -#: rcgcdw.py:163 +#: rcgcdw.py:171 msgid "Location" msgstr "Lokacja" -#: rcgcdw.py:165 +#: rcgcdw.py:173 msgid "About me" msgstr "O mnie" +#: rcgcdw.py:175 +msgid "Google link" +msgstr "link Google" + +#: rcgcdw.py:177 +msgid "Facebook link" +msgstr "link Facebook" + +#: rcgcdw.py:179 +msgid "Twitter link" +msgstr "link Twitter" + +#: rcgcdw.py:181 +msgid "Reddit link" +msgstr "link Reddit" + +#: rcgcdw.py:183 +msgid "Twitch link" +msgstr "link Twitch" + #: rcgcdw.py:185 +msgid "PSN link" +msgstr "link PSN" + +#: rcgcdw.py:187 +msgid "VK link" +msgstr "link VK" + +#: rcgcdw.py:189 +msgid "XVL link" +msgstr "link XVL" + +#: rcgcdw.py:191 +msgid "Steam link" +msgstr "link Steam" + +#: rcgcdw.py:193 msgid "Unknown" msgstr "Nieznana" -#: rcgcdw.py:186 +#: rcgcdw.py:194 msgid "Edited {target}'s profile" msgstr "Edytowano profil użytkownika {target}" -#: rcgcdw.py:187 +#: rcgcdw.py:195 msgid "{field} field changed to: {desc}" msgstr "pole {field} zostało zmienione na: {desc}" -#: rcgcdw.py:190 -msgid "Removed a comment on {target}'s profile" -msgstr "Usunięto komentarz na profilu użytkownika {target}" +#: rcgcdw.py:198 +msgid "Deleted a comment on {target}'s profile" +msgstr "Usunął komentarz na profilu użytkownika {target}" -#: rcgcdw.py:193 -msgid "Changed {target}'s user groups" -msgstr "Zmieniono grupy użytkownika {target}" +#: rcgcdw.py:201 +msgid "Changed group membership for {target}" +msgstr "Zmieniono przynależność do grup dla {target}" -#: rcgcdw.py:197 rcgcdw.py:199 +#: rcgcdw.py:205 rcgcdw.py:207 msgid "none" msgstr "brak" -#: rcgcdw.py:200 -msgid "" -"Groups changed from {old_groups} to {new_groups} with reason given: {desc}" -msgstr "Grupy zmienione z {old_groups} do {new_groups} z powodu: {desc}" - -#: rcgcdw.py:203 -msgid "Protected the page {target}" -msgstr "Zabezpieczono stronę: {target}" - -#: rcgcdw.py:208 -msgid "Modified protection settings for {article}" -msgstr "Zmodyfikowano ustawienia zabezpieczeń dla {article}" - -#: rcgcdw.py:213 -msgid "Removed protection for {article}" -msgstr "Usunięto zabezpieczenia dla {article}" - -#: rcgcdw.py:217 -msgid "Removed revision(s) from public view for {article}" -msgstr "Usunięto edycje z widoku publicznego dla {article}" - -#: rcgcdw.py:220 -msgid "Imported {article} with {count} revision(s)" -msgstr "Zaimportowano {article} z {count} wersjami" - -#: rcgcdw.py:223 -msgid "Restored {article}" -msgstr "Przywrócono {article)" - -#: rcgcdw.py:226 -msgid "Removed events" -msgstr "Usunięto wydarzenia" - -#: rcgcdw.py:229 -msgid "Imported interwiki" -msgstr "Zaimportowano interwiki" - -#: rcgcdw.py:232 -msgid "Edited abuse filter number {number}" -msgstr "Edytowano filtr nadużyć numer (number)" - -#: rcgcdw.py:235 -msgid "Merged revision histories for {article}" -msgstr "Połączono historie artykułu dla {article}" - -#: rcgcdw.py:238 -msgid "Added interwiki entry" -msgstr "Dodano intwrwiki" - -#: rcgcdw.py:239 rcgcdw.py:243 -msgid "Prefix: {prefix}, website: {website} | {desc}" -msgstr "Prefix: {prefix}, strona: {website} | desc" - -#: rcgcdw.py:242 -msgid "Edited interwiki entry" -msgstr "Edytowano interwiki" - -#: rcgcdw.py:246 -msgid "Deleted interwiki entry" -msgstr "Usunięto interwiki" - -#: rcgcdw.py:247 -msgid "Prefix: {prefix} | {desc}" -msgstr "Prefix: {prefix} | {desc}" - -#: rcgcdw.py:250 -msgid "Changed content model of {article}" -msgstr "Zmieniono model zawartości {article}" - -#: rcgcdw.py:251 -msgid "Model changed from {old} to {new}: {reason}" -msgstr "Model został zmieniony z {old} na {new}: reason" - -#: rcgcdw.py:254 -msgid "Edited the sprite for {article}" -msgstr "Edytowano sprite dla {article}" - -#: rcgcdw.py:257 -msgid "Created the sprite sheet for {article}" -msgstr "Utworzono sprite sheet dla {article}" - -#: rcgcdw.py:260 -msgid "Edited the slice for {article}" -msgstr "Edytowano część sprite dla {article}" - -#: rcgcdw.py:263 -msgid "Created a tag \"{tag}\"" -msgstr "Utworzono tag \"{tag}\"" - -#: rcgcdw.py:266 -msgid "Deleted a tag \"{tag}\"" -msgstr "Usunięto tag \"{tag}\"" - -#: rcgcdw.py:285 +#: rcgcdw.py:208 rcgcdw.py:302 msgid "No description provided" msgstr "Nie podano opisu zmian" -#: rcgcdw.py:366 +#: rcgcdw.py:209 +msgid "Groups changed from {old_groups} to {new_groups} {reason}" +msgstr "Grupy zmienione z {old_groups} do {new_groups} {desc}" + +#: rcgcdw.py:212 +msgid "Protected {target}" +msgstr "Zabezpieczono {target}" + +#: rcgcdw.py:217 +msgid "Changed protection level for {article}" +msgstr "Zmieniono poziom zabezpieczeń {article}" + +#: rcgcdw.py:222 +msgid "Removed protection from {article}" +msgstr "Usunięto zabezpieczenie {article}" + +#: rcgcdw.py:226 +msgid "Changed visibility of revision(s) on page {article} " +msgstr "Zmieniono widoczność wersji na stroni {article}" + +#: rcgcdw.py:229 +msgid "Imported {article} with {count} revision(s)" +msgstr "Zaimportowano {article} z {count} wersjami" + +#: rcgcdw.py:232 +msgid "Restored {article}" +msgstr "Przywrócono {article)" + +#: rcgcdw.py:235 +msgid "Changed visibility of log events" +msgstr "Zmieniono widoczność logów" + +#: rcgcdw.py:238 +msgid "Imported interwiki" +msgstr "Zaimportowano interwiki" + +#: rcgcdw.py:241 +msgid "Edited abuse filter number {number}" +msgstr "Edytowano filtr nadużyć numer (number)" + +#: rcgcdw.py:244 +msgid "Merged revision histories of {article} into {dest}" +msgstr "Połączono historie {article} z {dest}" + +#: rcgcdw.py:247 +msgid "Added an entry to the interwiki table" +msgstr "Dodano wpis do tabeli interwiki" + +#: rcgcdw.py:248 rcgcdw.py:252 +msgid "Prefix: {prefix}, website: {website} | {desc}" +msgstr "Prefix: {prefix}, strona: {website} | desc" + +#: rcgcdw.py:251 +msgid "Edited an entry in interwiki table" +msgstr "Edytowano wpis interwiki" + +#: rcgcdw.py:255 +msgid "Deleted an entry in interwiki table" +msgstr "Usunięto wpis interwiki" + +#: rcgcdw.py:256 +msgid "Prefix: {prefix} | {desc}" +msgstr "Prefix: {prefix} | {desc}" + +#: rcgcdw.py:259 +msgid "Changed the content model of the page {article}" +msgstr "Zmieniono model zawartości {article}" + +#: rcgcdw.py:260 +msgid "Model changed from {old} to {new}: {reason}" +msgstr "Model został zmieniony z {old} na {new}: reason" + +#: rcgcdw.py:263 +msgid "Edited the sprite for {article}" +msgstr "Edytowano sprite dla {article}" + +#: rcgcdw.py:266 +msgid "Created the sprite sheet for {article}" +msgstr "Utworzono sprite sheet dla {article}" + +#: rcgcdw.py:269 +msgid "Edited the slice for {article}" +msgstr "Edytowano część sprite dla {article}" + +#: rcgcdw.py:272 +msgid "Created a tag \"{tag}\"" +msgstr "Utworzono tag \"{tag}\"" + +#: rcgcdw.py:275 +msgid "Deleted a tag \"{tag}\"" +msgstr "Usunięto tag \"{tag}\"" + +#: rcgcdw.py:278 +msgid "Activated a tag \"{tag}\"" +msgstr "Aktywowano tag \"{tag}\"" + +#: rcgcdw.py:281 +msgid "Deactivated a tag \"{tag}\"" +msgstr "Dezaktywowano tag \"{tag}\"" + +#: rcgcdw.py:387 msgid "Unable to process the event" msgstr "Nie udało się odczytać wydarzenia" -#: rcgcdw.py:366 +#: rcgcdw.py:387 msgid "error" msgstr "błąd" -#: rcgcdw.py:451 +#: rcgcdw.py:485 msgid "Connection status" msgstr "Problem z połączeniem" -#: rcgcdw.py:451 -msgid "https://i.imgur.com/2jWQEt1.png" -msgstr "https://i.imgur.com/2jWQEt1.png" - -#: rcgcdw.py:451 +#: rcgcdw.py:485 msgid "{wiki} seems to be down or unreachable." msgstr "{wiki} nie działa lub jest nieosiągalna." + +#~ msgid "Moved {article} to redirect page ({title})" +#~ msgstr "Przeniesiono {article} do przekierowania ({title})" + +#~ msgid "Removed the block on {blocked_user}" +#~ msgstr "Usunięto blokadę na {blocked_user}" + +#~ msgid "Removed a comment on {target}'s profile" +#~ msgstr "Usunięto komentarz na profilu użytkownika {target}" + +#~ msgid "Changed {target}'s user groups" +#~ msgstr "Zmieniono grupy użytkownika {target}" + +#~ msgid "Modified protection settings for {article}" +#~ msgstr "Zmodyfikowano ustawienia zabezpieczeń dla {article}" + +#~ msgid "Removed revision(s) from public view for {article}" +#~ msgstr "Usunięto edycje z widoku publicznego dla {article}" + +#~ msgid "Removed events" +#~ msgstr "Usunięto wydarzenia" + +#~ msgid "Added interwiki entry" +#~ msgstr "Dodano intwrwiki" + +#~ msgid "https://i.imgur.com/2jWQEt1.png" +#~ msgstr "https://i.imgur.com/2jWQEt1.png" diff --git a/rcgcdw.pot b/rcgcdw.pot index e18f229..9620785 100644 --- a/rcgcdw.pot +++ b/rcgcdw.pot @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2018-06-16 14:38+0200\n" +"POT-Creation-Date: 2018-06-18 11:12+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -15,233 +15,285 @@ msgstr "" "Generated-By: pygettext.py 1.5\n" -#: rcgcdw.py:90 -msgid "New file version {name}" +#: rcgcdw.py:84 +msgid "(N!) " msgstr "" -#: rcgcdw.py:91 +#: rcgcdw.py:84 +msgid "m " +msgstr "" + +#: rcgcdw.py:98 +msgid "Uploaded a new version of {name}" +msgstr "" + +#: rcgcdw.py:99 msgid "([preview]({link}) | [undo]({undolink}))" msgstr "" -#: rcgcdw.py:91 rcgcdw.py:107 +#: rcgcdw.py:99 rcgcdw.py:115 msgid "Options" msgstr "" -#: rcgcdw.py:93 -msgid "New file {name}" -msgstr "" - -#: rcgcdw.py:107 -msgid "([preview]({link}))" +#: rcgcdw.py:101 +msgid "Uploaded {name}" msgstr "" #: rcgcdw.py:108 +msgid "**No license!**" +msgstr "" + +#: rcgcdw.py:115 +msgid "([preview]({link}))" +msgstr "" + +#: rcgcdw.py:116 msgid "" "{desc}\n" "License: {license}" msgstr "" -#: rcgcdw.py:113 -msgid "Deleted {article}" -msgstr "" - -#: rcgcdw.py:118 -msgid "Deleted redirect ({article}) to make space for moved page" -msgstr "" - -#: rcgcdw.py:122 -msgid "A redirect has been made" -msgstr "" - -#: rcgcdw.py:122 -msgid "No redirect has been made" -msgstr "" - -#: rcgcdw.py:123 -msgid "Moved \"{article}\" to \"{target}\"" +#: rcgcdw.py:121 +msgid "Deleted page {article}" msgstr "" #: rcgcdw.py:126 -msgid "Moved {article} to redirect page ({title})" +msgid "Deleted redirect {article} by overwriting" msgstr "" #: rcgcdw.py:130 +msgid "A redirect has been made" +msgstr "" + +#: rcgcdw.py:130 +msgid "No redirect has been made" +msgstr "" + +#: rcgcdw.py:131 +msgid "Moved {article} to {target}" +msgstr "" + +#: rcgcdw.py:134 +msgid "Moved {article} to {title} over redirect" +msgstr "" + +#: rcgcdw.py:138 msgid "Moved protection settings from {article} to {title}" msgstr "" -#: rcgcdw.py:135 +#: rcgcdw.py:143 msgid "infinity and beyond" msgstr "" -#: rcgcdw.py:136 +#: rcgcdw.py:144 msgid "Blocked {blocked_user} for {time}" msgstr "" -#: rcgcdw.py:142 -msgid "Reapplied the block on {blocked_user}" -msgstr "" - -#: rcgcdw.py:148 -msgid "Removed the block on {blocked_user}" -msgstr "" - -#: rcgcdw.py:153 -msgid "Left a comment on {target}'s profile" +#: rcgcdw.py:150 +msgid "Changed block settings for {blocked_user}" msgstr "" #: rcgcdw.py:156 +msgid "Unblocked {blocked_user}" +msgstr "" + +#: rcgcdw.py:161 +msgid "Left a comment on {target}'s profile" +msgstr "" + +#: rcgcdw.py:164 msgid "Replied to a comment on {target}'s profile" msgstr "" -#: rcgcdw.py:159 +#: rcgcdw.py:167 msgid "Edited a comment on {target}'s profile" msgstr "" -#: rcgcdw.py:163 +#: rcgcdw.py:171 msgid "Location" msgstr "" -#: rcgcdw.py:165 +#: rcgcdw.py:173 msgid "About me" msgstr "" -#: rcgcdw.py:185 -msgid "Unknown" +#: rcgcdw.py:175 +msgid "Google link" msgstr "" -#: rcgcdw.py:186 -msgid "Edited {target}'s profile" +#: rcgcdw.py:177 +msgid "Facebook link" +msgstr "" + +#: rcgcdw.py:179 +msgid "Twitter link" +msgstr "" + +#: rcgcdw.py:181 +msgid "Reddit link" +msgstr "" + +#: rcgcdw.py:183 +msgid "Twitch link" +msgstr "" + +#: rcgcdw.py:185 +msgid "PSN link" msgstr "" #: rcgcdw.py:187 -msgid "{field} field changed to: {desc}" +msgid "VK link" msgstr "" -#: rcgcdw.py:190 -msgid "Removed a comment on {target}'s profile" +#: rcgcdw.py:189 +msgid "XVL link" +msgstr "" + +#: rcgcdw.py:191 +msgid "Steam link" msgstr "" #: rcgcdw.py:193 -msgid "Changed {target}'s user groups" +msgid "Unknown" msgstr "" -#: rcgcdw.py:197 rcgcdw.py:199 +#: rcgcdw.py:194 +msgid "Edited {target}'s profile" +msgstr "" + +#: rcgcdw.py:195 +msgid "{field} field changed to: {desc}" +msgstr "" + +#: rcgcdw.py:198 +msgid "Deleted a comment on {target}'s profile" +msgstr "" + +#: rcgcdw.py:201 +msgid "Changed group membership for {target}" +msgstr "" + +#: rcgcdw.py:205 rcgcdw.py:207 msgid "none" msgstr "" -#: rcgcdw.py:200 -msgid "Groups changed from {old_groups} to {new_groups} with reason given: {desc}" -msgstr "" - -#: rcgcdw.py:203 -msgid "Protected the page {target}" -msgstr "" - -#: rcgcdw.py:208 -msgid "Modified protection settings for {article}" -msgstr "" - -#: rcgcdw.py:213 -msgid "Removed protection for {article}" -msgstr "" - -#: rcgcdw.py:217 -msgid "Removed revision(s) from public view for {article}" -msgstr "" - -#: rcgcdw.py:220 -msgid "Imported {article} with {count} revision(s)" -msgstr "" - -#: rcgcdw.py:223 -msgid "Restored {article}" -msgstr "" - -#: rcgcdw.py:226 -msgid "Removed events" -msgstr "" - -#: rcgcdw.py:229 -msgid "Imported interwiki" -msgstr "" - -#: rcgcdw.py:232 -msgid "Edited abuse filter number {number}" -msgstr "" - -#: rcgcdw.py:235 -msgid "Merged revision histories for {article}" -msgstr "" - -#: rcgcdw.py:238 -msgid "Added interwiki entry" -msgstr "" - -#: rcgcdw.py:239 rcgcdw.py:243 -msgid "Prefix: {prefix}, website: {website} | {desc}" -msgstr "" - -#: rcgcdw.py:242 -msgid "Edited interwiki entry" -msgstr "" - -#: rcgcdw.py:246 -msgid "Deleted interwiki entry" -msgstr "" - -#: rcgcdw.py:247 -msgid "Prefix: {prefix} | {desc}" -msgstr "" - -#: rcgcdw.py:250 -msgid "Changed content model of {article}" -msgstr "" - -#: rcgcdw.py:251 -msgid "Model changed from {old} to {new}: {reason}" -msgstr "" - -#: rcgcdw.py:254 -msgid "Edited the sprite for {article}" -msgstr "" - -#: rcgcdw.py:257 -msgid "Created the sprite sheet for {article}" -msgstr "" - -#: rcgcdw.py:260 -msgid "Edited the slice for {article}" -msgstr "" - -#: rcgcdw.py:263 -msgid "Created a tag \"{tag}\"" -msgstr "" - -#: rcgcdw.py:266 -msgid "Deleted a tag \"{tag}\"" -msgstr "" - -#: rcgcdw.py:285 +#: rcgcdw.py:208 rcgcdw.py:302 msgid "No description provided" msgstr "" -#: rcgcdw.py:366 +#: rcgcdw.py:209 +msgid "Groups changed from {old_groups} to {new_groups} {reason}" +msgstr "" + +#: rcgcdw.py:212 +msgid "Protected {target}" +msgstr "" + +#: rcgcdw.py:217 +msgid "Changed protection level for {article}" +msgstr "" + +#: rcgcdw.py:222 +msgid "Removed protection from {article}" +msgstr "" + +#: rcgcdw.py:226 +msgid "Changed visibility of revision(s) on page {article} " +msgstr "" + +#: rcgcdw.py:229 +msgid "Imported {article} with {count} revision(s)" +msgstr "" + +#: rcgcdw.py:232 +msgid "Restored {article}" +msgstr "" + +#: rcgcdw.py:235 +msgid "Changed visibility of log events" +msgstr "" + +#: rcgcdw.py:238 +msgid "Imported interwiki" +msgstr "" + +#: rcgcdw.py:241 +msgid "Edited abuse filter number {number}" +msgstr "" + +#: rcgcdw.py:244 +msgid "Merged revision histories of {article} into {dest}" +msgstr "" + +#: rcgcdw.py:247 +msgid "Added an entry to the interwiki table" +msgstr "" + +#: rcgcdw.py:248 rcgcdw.py:252 +msgid "Prefix: {prefix}, website: {website} | {desc}" +msgstr "" + +#: rcgcdw.py:251 +msgid "Edited an entry in interwiki table" +msgstr "" + +#: rcgcdw.py:255 +msgid "Deleted an entry in interwiki table" +msgstr "" + +#: rcgcdw.py:256 +msgid "Prefix: {prefix} | {desc}" +msgstr "" + +#: rcgcdw.py:259 +msgid "Changed the content model of the page {article}" +msgstr "" + +#: rcgcdw.py:260 +msgid "Model changed from {old} to {new}: {reason}" +msgstr "" + +#: rcgcdw.py:263 +msgid "Edited the sprite for {article}" +msgstr "" + +#: rcgcdw.py:266 +msgid "Created the sprite sheet for {article}" +msgstr "" + +#: rcgcdw.py:269 +msgid "Edited the slice for {article}" +msgstr "" + +#: rcgcdw.py:272 +msgid "Created a tag \"{tag}\"" +msgstr "" + +#: rcgcdw.py:275 +msgid "Deleted a tag \"{tag}\"" +msgstr "" + +#: rcgcdw.py:278 +msgid "Activated a tag \"{tag}\"" +msgstr "" + +#: rcgcdw.py:281 +msgid "Deactivated a tag \"{tag}\"" +msgstr "" + +#: rcgcdw.py:387 msgid "Unable to process the event" msgstr "" -#: rcgcdw.py:366 +#: rcgcdw.py:387 msgid "error" msgstr "" -#: rcgcdw.py:451 +#: rcgcdw.py:485 msgid "Connection status" msgstr "" -#: rcgcdw.py:451 -msgid "https://i.imgur.com/2jWQEt1.png" -msgstr "" - -#: rcgcdw.py:451 +#: rcgcdw.py:485 msgid "{wiki} seems to be down or unreachable." msgstr "" diff --git a/rcgcdw.py b/rcgcdw.py index fd76bba..4d4d2e9 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -8,10 +8,6 @@ from urllib.parse import quote_plus logging.basicConfig(level=logging.DEBUG) #logging.warning('Watch out!') #DEBUG, INFO, WARNING, ERROR, CRITICAL -pl = gettext.translation('rcgcdw', localedir='locale', languages=['pl']) -pl.install() -_ = lambda s: s - with open("settings.json") as sfile: settings = json.load(sfile) if settings["limitrefetch"] < settings["limit"] and settings["limitrefetch"]!=-1: @@ -20,6 +16,10 @@ if settings["limitrefetch"] != -1 and os.path.exists("lastchange.txt") == False: with open("lastchange.txt", 'w') as sfile: sfile.write("") logging.info("Current settings: {settings}".format(settings=settings)) +lang = gettext.translation('rcgcdw', localedir='locale', languages=[settings["lang"]]) +lang.install() +#_ = lambda s: s + def send(message, name, avatar): req = requests.post(settings["webhookURL"], data={"content": message, "avatar_url": avatar, "username": name}, timeout=10) @@ -81,7 +81,7 @@ def webhook_formatter(action, timestamp, **params): embed["author"]["icon_url"] = "https://d1u5p3l4wpay3k.cloudfront.net/minecraft_pl_gamepedia/d/df/Ksi%C4%85%C5%BCka_z_pi%C3%B3rem.png?version=d2b085f15fb5713091ed06f92f81c360" else: embed["author"]["icon_url"] = "https://framapic.org/VBVcOznftNsV/4a0fbBL7wkUo.png" - embed["title"] = "{article} ({new}{minor}{editsize})".format(article=params["title"], editsize="+"+str(editsize) if editsize>0 else editsize, new= "(N!) " if action == 37 else "", minor="m " if action == 1 and params["minor"] else "") + embed["title"] = "{article} ({new}{minor}{editsize})".format(article=params["title"], editsize="+"+str(editsize) if editsize>0 else editsize, new= _("(N!) ") if action == 37 else "", minor=_("m ") if action == 1 and params["minor"] else "") elif action == 5: #sending files urls = safe_read(recent_changes.safe_request("https://{wiki}.gamepedia.com/api.php?action=query&format=json&prop=imageinfo&list=&meta=&titles={filename}&iiprop=timestamp%7Curl&iilimit=2".format(wiki=settings["wiki"], filename=params["title"])), "query", "pages") undolink = "" @@ -95,17 +95,17 @@ def webhook_formatter(action, timestamp, **params): colornumber = 12390624 img_timestamp = [x for x in img_info[1]["timestamp"] if x.isdigit()] undolink = "https://{wiki}.gamepedia.com/index.php?title={filename}&action=revert&oldimage={timestamp}%21{filenamewon}".format(wiki=settings["wiki"], filename=article_encoded, timestamp="".join(img_timestamp), filenamewon = article_encoded[5:]) - embed["title"] = _("New file version {name}").format(name=params["title"]) + embed["title"] = _("Uploaded a new version of {name}").format(name=params["title"]) embed["fields"] = [{"name": _("Options"), "value": _("([preview]({link}) | [undo]({undolink}))").format(link=embed["image"]["url"], undolink=undolink)}] else: - embed["title"] = _("New file {name}").format(name=params["title"]) + embed["title"] = _("Uploaded {name}").format(name=params["title"]) article_content = safe_read(recent_changes.safe_request("https://{wiki}.gamepedia.com/api.php?action=query&format=json&prop=revisions&titles={article}&rvprop=content".format(wiki=settings["wiki"], article=quote_plus(params["title"], safe=''))), "query", "pages") if article_content is None: logging.warning("Something went wrong when getting license for the image") return 0 content = list(article_content.values())[0]['revisions'][0]['*'].lower() if "{{license" not in content: - license = "**No license!**" + license = _("**No license!**") else: matches = re.search(r"\{\{license\ (.*?)\}\}", content) if matches is not None: @@ -118,20 +118,20 @@ def webhook_formatter(action, timestamp, **params): link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded) embed["author"]["icon_url"] = "https://framapic.org/9Rgw6Vkx1L1b/R9WrMWJ6umeX.png" colornumber = 1 - embed["title"] = _("Deleted {article}").format(article=params["title"]) + embed["title"] = _("Deleted page {article}").format(article=params["title"]) elif action == 7: link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded) embed["author"]["icon_url"] = "https://framapic.org/9Rgw6Vkx1L1b/R9WrMWJ6umeX.png" colornumber = 1 - embed["title"] = _("Deleted redirect ({article}) to make space for moved page").format(article=params["title"]) + embed["title"] = _("Deleted redirect {article} by overwriting").format(article=params["title"]) elif action == 14: link = params["targetlink"] embed["author"]["icon_url"] = "https://i.imgur.com/ZX02KBf.png" params["desc"] = "{supress}. {desc}".format(desc=params["desc"], supress=_("No redirect has been made") if params["supress"] == True else _("A redirect has been made")) - embed["title"] = _("Moved \"{article}\" to \"{target}\"").format(article = params["title"], target=params["target"]) + embed["title"] = _("Moved {article} to {target}").format(article = params["title"], target=params["target"]) elif action == 15: link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded) - embed["title"] = _("Moved {article} to redirect page ({title})").format(article=params["title"], title=params["target"]) + embed["title"] = _("Moved {article} to {title} over redirect").format(article=params["title"], title=params["target"]) embed["author"]["icon_url"]= "https://i.imgur.com/ZX02KBf.png" elif action == 16: link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded) @@ -147,13 +147,13 @@ def webhook_formatter(action, timestamp, **params): elif action == 19: link = "https://{wiki}.gamepedia.com/{user}".format(wiki=settings["wiki"], user=params["blocked_user"].replace(" ", "_").replace(')', '\)')) user = params["blocked_user"].split(':')[1] - embed["title"] = _("Reapplied the block on {blocked_user}").format(blocked_user=user) + embed["title"] = _("Changed block settings for {blocked_user}").format(blocked_user=user) colornumber = 1 embed["author"]["icon_url"] = "https://i.imgur.com/g7KgZHf.png" elif action == 18: link = "https://{wiki}.gamepedia.com/{user}".format(wiki=settings["wiki"], user=params["blocked_user"].replace(" ", "_").replace(')', '\)')) user = params["blocked_user"].split(':')[1] - embed["title"] = _("Removed the block on {blocked_user}").format(blocked_user=user) + embed["title"] = _("Unblocked {blocked_user}").format(blocked_user=user) colornumber = 1 embed["author"]["icon_url"] = "https://i.imgur.com/g7KgZHf.png" elif action == 25: @@ -172,57 +172,58 @@ def webhook_formatter(action, timestamp, **params): elif params["field"] == "profile-aboutme": field = _("About me") elif params["field"] == "profile-link-google": - field = "Google link" + field = _("Google link") elif params["field"] == "profile-link-facebook": - field = "Facebook link" + field = _("Facebook link") elif params["field"] == "profile-link-twitter": - field = "Twitter link" + field = _("Twitter link") elif params["field"] == "profile-link-reddit": - field = "Reddit link" + field = _("Reddit link") elif params["field"] == "profile-link-twitch": - field = "Twitch link" + field = _("Twitch link") elif params["field"] == "profile-link-psn": - field = "PSN link" + field = _("PSN link") elif params["field"] == "profile-link-vk": - field = "VK link" + field = _("VK link") elif params["field"] == "profile-link-xbl": - field = "XVL link" + field = _("XVL link") elif params["field"] == "profile-link-steam": - field = "Steam link" + field = _("Steam link") else: field = _("Unknown") embed["title"] = _("Edited {target}'s profile").format(target=params["target"]) params["desc"] = _("{field} field changed to: {desc}").format(field=field, desc=params["desc"]) elif action == 27: link = "https://{wiki}.gamepedia.com/UserProfile:{target}".format(wiki=settings["wiki"], target=params["target"].replace(" ", "_").replace(')', '\)')) - embed["title"] = _("Removed a comment on {target}'s profile").format(target=params["target"]) + embed["title"] = _("Deleted a comment on {target}'s profile").format(target=params["target"]) elif action == 20: link = "https://{wiki}.gamepedia.com/"+params["user"].replace(" ", "_").replace(')', '\)') - embed["title"] = _("Changed {target}'s user groups").format(target=params["user"]) + embed["title"] = _("Changed group membership for {target}").format(target=params["user"]) if params["old_groups"].count(' ') < params["new_groups"].count(' '): embed["thumbnail"]["url"] = "https://i.imgur.com/WnGhF5g.gif" if len(params["old_groups"]) < 4: params["old_groups"] = _("none") if len(params["new_groups"]) < 4: params["new_groups"] = _("none") - params["desc"] = _("Groups changed from {old_groups} to {new_groups} with reason given: {desc}").format(old_groups=params["old_groups"], new_groups=params["new_groups"], desc=params["desc"]) + reason = "| {desc}".format(desc=params["desc"]) if params["desc"]!=_("No description provided") else "" + params["desc"] = _("Groups changed from {old_groups} to {new_groups} {reason}").format(old_groups=params["old_groups"], new_groups=params["new_groups"], reason=reason) elif action == 2: link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded) - embed["title"] = _("Protected the page {target}").format(target=params["title"]) + embed["title"] = _("Protected {target}").format(target=params["title"]) embed["author"]["icon_url"] ="https://i.imgur.com/Lfk0wuw.png" params["desc"] = params["settings"] + " | " + params["desc"] elif action == 3: link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded) - embed["title"] = _("Modified protection settings for {article}").format(article=params["title"]) + embed["title"] = _("Changed protection level for {article}").format(article=params["title"]) params["desc"] = params["settings"] + " | " + params["desc"] embed["author"]["icon_url"] ="https://i.imgur.com/Lfk0wuw.png" elif action == 4: link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded) - embed["title"] = _("Removed protection for {article}").format(article=params["title"]) + embed["title"] = _("Removed protection from {article}").format(article=params["title"]) embed["author"]["icon_url"] ="https://i.imgur.com/Lfk0wuw.png" elif action == 9: link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded) - embed["title"] = _("Removed revision(s) from public view for {article}").format(article=params["title"]) + embed["title"] = _("Changed visibility of revision(s) on page {article} ").format(article=params["title"]) elif action == 11: link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded) embed["title"] = _("Imported {article} with {count} revision(s)").format(article=params["title"], count=params["amount"]) @@ -231,31 +232,31 @@ def webhook_formatter(action, timestamp, **params): embed["title"] = _("Restored {article}").format(article=params["title"]) elif action == 10: link = "https://{wiki}.gamepedia.com/Special:RecentChanges".format(wiki=settings["wiki"]) - embed["title"] = _("Removed events") + embed["title"] = _("Changed visibility of log events") elif action == 12: link = "https://{wiki}.gamepedia.com/Special:RecentChanges".format(wiki=settings["wiki"]) embed["title"] = _("Imported interwiki") elif action == 21: link = "https://{wiki}.gamepedia.com/Special:RecentChanges".format(wiki=settings["wiki"]) embed["title"] = _("Edited abuse filter number {number}").format(number=params["filternr"]) - elif action == 8: + elif action == 13: link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded) - embed["title"] = _("Merged revision histories for {article}").format(article=params["title"]) + embed["title"] = _("Merged revision histories of {article} into {dest}").format(article=params["title"], dest=params["destination"]) elif action == 22: link = "https://{wiki}.gamepedia.com/Special:Interwiki".format(wiki=settings["wiki"]) - embed["title"] = _("Added interwiki entry") + embed["title"] = _("Added an entry to the interwiki table") params["desc"] =_("Prefix: {prefix}, website: {website} | {desc}").format(desc=params["desc"], prefix=params["prefix"], website=params["website"]) elif action == 23: link = "https://{wiki}.gamepedia.com/Special:Interwiki".format(wiki=settings["wiki"]) - embed["title"] = _("Edited interwiki entry") + embed["title"] = _("Edited an entry in interwiki table") params["desc"] =_("Prefix: {prefix}, website: {website} | {desc}").format(desc=params["desc"], prefix=params["prefix"], website=params["website"]) elif action == 24: link = "https://{wiki}.gamepedia.com/Special:Interwiki".format(wiki=settings["wiki"]) - embed["title"] = _("Deleted interwiki entry") + embed["title"] = _("Deleted an entry in interwiki table") params["desc"] =_("Prefix: {prefix} | {desc}").format(desc=params["desc"], prefix=params["prefix"]) elif action == 30: link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded) - embed["title"] = _("Changed content model of {article}").format(article=params["title"]) + embed["title"] = _("Changed the content model of the page {article}").format(article=params["title"]) params["desc"] = _("Model changed from {old} to {new}: {reason}").format(old=params["oldmodel"], new=params["newmodel"], reason=params["desc"]) elif action == 31: link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded) @@ -272,6 +273,12 @@ def webhook_formatter(action, timestamp, **params): elif action == 35: link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded) embed["title"] = _("Deleted a tag \"{tag}\"").format(article=params["additional"]["tag"]) + elif action == 36: + link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded) + embed["title"] = _("Activated a tag \"{tag}\"").format(article=params["additional"]["tag"]) + elif action == 38: + link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded) + embed["title"] = _("Deactivated a tag \"{tag}\"").format(article=params["additional"]["tag"]) else: logging.warning("No entry for {event} with params: {params}".format(event=action, params=params)) embed["author"]["name"] = params["user"] @@ -283,6 +290,7 @@ def webhook_formatter(action, timestamp, **params): embed["color"] = random.randrange(1, 16777215) if colornumber is None else math.floor(colornumber) embed["timestamp"] = timestamp data["embeds"].append(dict(embed)) + data['avatar_url'] = settings["avatars"]["embed"] formatted_embed = json.dumps(data, indent=4) headers = {'Content-Type': 'application/json'} #logging.debug(data) @@ -322,7 +330,7 @@ def first_pass(change): elif logtype=="import" and logaction=="interwiki": webhook_formatter(12, change["timestamp"], user=change["user"], desc=parsedcomment) elif logtype=="merge" : - webhook_formatter(13, change["timestamp"], user=change["user"], title=change["title"], desc=parsedcomment) + webhook_formatter(13, change["timestamp"], user=change["user"], title=change["title"], desc=parsedcomment, destination=change["logparams"]["dest_title"]) elif logtype=="move" and logaction=="move": webhook_formatter(14, change["timestamp"], user=change["user"], title=change["title"], desc=parsedcomment, supress=True if "suppressredirect" in change["logparams"] else False, target=change["logparams"]['target_title'], targetlink="https://{wiki}.gamepedia.com/".format(wiki=settings["wiki"]) + change["logparams"]['target_title'].replace(" ", "_")) #TODO Remove the link making in here elif logtype=="move" and logaction=="move_redir": @@ -367,12 +375,16 @@ def first_pass(change): webhook_formatter(34, change["timestamp"], user=change["user"], title=change["title"], desc=parsedcomment, additional=change["params"]) elif logtype=="managetags" and logaction=="delete": webhook_formatter(35, change["timestamp"], user=change["user"], title=change["title"], desc=parsedcomment, additional=change["params"]) + elif logtype=="managetags" and logaction=="activate": + webhook_formatter(36, change["timestamp"], user=change["user"], title=change["title"], desc=parsedcomment, additional=change["params"]) + elif logtype=="managetags" and logaction=="deactivate": + webhook_formatter(38, change["timestamp"], user=change["user"], title=change["title"], desc=parsedcomment, additional=change["params"]) elif logtype=="tag" and logaction=="update": - webhook_formatter(36, change["timestamp"], user=change["user"], title=change["title"], desc=parsedcomment) + webhook_formatter(39, change["timestamp"], user=change["user"], title=change["title"], desc=parsedcomment) else: logging.warning("No entry matches given change!") print (change) - send(_("Unable to process the event"), _("error"), "") + send(_("Unable to process the event"), _("error"), settings["avatars"]["no_event"]) return if change["type"] == "external": #not sure what happens then, but it's listed as possible type logging.warning("External event happened, ignoring.") @@ -395,7 +407,7 @@ class recent_changes(object): file_id = int(record.read().strip()) logging.debug("File_id is {val}".format(val=file_id)) else: - file_id = 9999999 + file_id = 999999999 def add_cache(self, change): self.cache.append(change) self.ids.append(change["rcid"]) @@ -426,6 +438,8 @@ class recent_changes(object): logging.warning("Wiki returned %s" % (request.json())) return None else: + if self.downtimecredibility > 0: + self.downtimecredibility -= 1 for change in changes: if change["rcid"] in self.ids: continue @@ -468,7 +482,7 @@ class recent_changes(object): self.downtimecredibility+=15 else: if (time.time() - self.last_downtime)>1800 and self.check_connection(): #check if last downtime happened within 30 minutes, if yes, don't send a message - send(_("{wiki} seems to be down or unreachable.").format(wiki=settings["wiki"]), _("Connection status"), _("https://i.imgur.com/2jWQEt1.png")) + send(_("{wiki} seems to be down or unreachable.").format(wiki=settings["wiki"]), _("Connection status"), settings["avatars"]["connection_failed"]) self.last_downtime = time.time() recent_changes = recent_changes() @@ -476,9 +490,7 @@ recent_changes.fetch(amount=settings["limitrefetch" ] if settings["limitrefetch" while 1: time.sleep(float(settings["cooldown"])) - logging.debug(time.time()) recent_changes.fetch() - logging.debug(time.time()) if (recent_changes.day != datetime.date.fromtimestamp(time.time()).day): logging.info("A brand new day! Printing the summary and clearing the cache") #recent_changes.summary()