mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Added language switch, new translations, fixes
This commit is contained in:
parent
d67b05b86a
commit
5f39940971
|
@ -5,7 +5,7 @@ Recent changes Gamepedia compatible Discord webhook is a project made from earli
|
||||||
* **Python3 3.6>**
|
* **Python3 3.6>**
|
||||||
* requests 2.18.4>
|
* requests 2.18.4>
|
||||||
* beautifulsoup4 4.6.0>
|
* beautifulsoup4 4.6.0>
|
||||||
^ lxml 4.2.1>
|
* lxml 4.2.1>
|
||||||
|
|
||||||
### Features ###
|
### Features ###
|
||||||
* Fetch recent changes from Gamepedia wiki and send them to Discord channel using a webhook
|
* Fetch recent changes from Gamepedia wiki and send them to Discord channel using a webhook
|
||||||
|
|
BIN
locale/de/LC_MESSAGES/rcgcdw.mo
Normal file
BIN
locale/de/LC_MESSAGES/rcgcdw.mo
Normal file
Binary file not shown.
301
locale/de/LC_MESSAGES/rcgcdw.po
Normal file
301
locale/de/LC_MESSAGES/rcgcdw.po
Normal file
|
@ -0,0 +1,301 @@
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR ORGANIZATION
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, 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 <piotrex43@protonmail.ch>\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."
|
Binary file not shown.
|
@ -5,8 +5,8 @@
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: RcGcDw\n"
|
"Project-Id-Version: RcGcDw\n"
|
||||||
"POT-Creation-Date: 2018-06-16 14:38+0200\n"
|
"POT-Creation-Date: 2018-06-18 11:12+0200\n"
|
||||||
"PO-Revision-Date: 2018-06-16 14:44+0200\n"
|
"PO-Revision-Date: 2018-06-18 11:15+0200\n"
|
||||||
"Last-Translator: Frisk <piotrex43@protonmail.ch>\n"
|
"Last-Translator: Frisk <piotrex43@protonmail.ch>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"Language: pl\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 "
|
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
||||||
"|| n%100>=20) ? 1 : 2);\n"
|
"|| n%100>=20) ? 1 : 2);\n"
|
||||||
|
|
||||||
#: rcgcdw.py:90
|
#: rcgcdw.py:84
|
||||||
msgid "New file version {name}"
|
msgid "(N!) "
|
||||||
msgstr "Nowa wersja pliku (name)"
|
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}))"
|
msgid "([preview]({link}) | [undo]({undolink}))"
|
||||||
msgstr "([podgląd]({link}) | [wycofaj]({undolink}))"
|
msgstr "([podgląd]({link}) | [wycofaj]({undolink}))"
|
||||||
|
|
||||||
#: rcgcdw.py:91 rcgcdw.py:107
|
#: rcgcdw.py:99 rcgcdw.py:115
|
||||||
msgid "Options"
|
msgid "Options"
|
||||||
msgstr "Opcje"
|
msgstr "Opcje"
|
||||||
|
|
||||||
#: rcgcdw.py:93
|
#: rcgcdw.py:101
|
||||||
msgid "New file {name}"
|
msgid "Uploaded {name}"
|
||||||
msgstr "Nowy plik {name}"
|
msgstr "Przesłał(a) {name}"
|
||||||
|
|
||||||
#: rcgcdw.py:107
|
#: rcgcdw.py:108
|
||||||
|
msgid "**No license!**"
|
||||||
|
msgstr "**Brak licencji!**"
|
||||||
|
|
||||||
|
#: rcgcdw.py:115
|
||||||
msgid "([preview]({link}))"
|
msgid "([preview]({link}))"
|
||||||
msgstr "([podgląd]({link})"
|
msgstr "([podgląd]({link})"
|
||||||
|
|
||||||
#: rcgcdw.py:108
|
#: rcgcdw.py:116
|
||||||
msgid ""
|
msgid ""
|
||||||
"{desc}\n"
|
"{desc}\n"
|
||||||
"License: {license}"
|
"License: {license}"
|
||||||
|
@ -46,209 +58,275 @@ msgstr ""
|
||||||
"{desc}\n"
|
"{desc}\n"
|
||||||
"Licencja: {license}"
|
"Licencja: {license}"
|
||||||
|
|
||||||
#: rcgcdw.py:113
|
#: rcgcdw.py:121
|
||||||
msgid "Deleted {article}"
|
msgid "Deleted page {article}"
|
||||||
msgstr "Usunięto {article}"
|
msgstr "Usunął/usunęła {article}"
|
||||||
|
|
||||||
#: rcgcdw.py:118
|
#: rcgcdw.py:126
|
||||||
msgid "Deleted redirect ({article}) to make space for moved page"
|
msgid "Deleted redirect {article} by overwriting"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Usunięto przekierowanie ({article}) aby utworzyć miejsce dla przenoszonej "
|
"Usunął/usunęła przekierowanie ({article}) aby utworzyć miejsce dla "
|
||||||
"strony"
|
"przenoszonej strony"
|
||||||
|
|
||||||
#: rcgcdw.py:122
|
#: rcgcdw.py:130
|
||||||
msgid "A redirect has been made"
|
msgid "A redirect has been made"
|
||||||
msgstr "Zostało utworzone przekierowanie"
|
msgstr "Zostało utworzone przekierowanie"
|
||||||
|
|
||||||
#: rcgcdw.py:122
|
#: rcgcdw.py:130
|
||||||
msgid "No redirect has been made"
|
msgid "No redirect has been made"
|
||||||
msgstr "Nie utworzono przekierowania"
|
msgstr "Nie utworzono przekierowania"
|
||||||
|
|
||||||
#: rcgcdw.py:123
|
#: rcgcdw.py:131
|
||||||
msgid "Moved \"{article}\" to \"{target}\""
|
msgid "Moved {article} to {target}"
|
||||||
msgstr "Przeniesiono \"{article}\" do \"{target}\""
|
msgstr "Przeniósł/przeniosła {article} do {target}"
|
||||||
|
|
||||||
#: rcgcdw.py:126
|
#: rcgcdw.py:134
|
||||||
msgid "Moved {article} to redirect page ({title})"
|
msgid "Moved {article} to {title} over redirect"
|
||||||
msgstr "Przeniesiono {article} do przekierowania ({title})"
|
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}"
|
msgid "Moved protection settings from {article} to {title}"
|
||||||
msgstr "Przeniesiono ustawienia zabezpieczeń z {article} do {title}"
|
msgstr "Przeniesiono ustawienia zabezpieczeń z {article} do {title}"
|
||||||
|
|
||||||
#: rcgcdw.py:135
|
#: rcgcdw.py:143
|
||||||
msgid "infinity and beyond"
|
msgid "infinity and beyond"
|
||||||
msgstr "wieczność"
|
msgstr "wieczność"
|
||||||
|
|
||||||
#: rcgcdw.py:136
|
#: rcgcdw.py:144
|
||||||
msgid "Blocked {blocked_user} for {time}"
|
msgid "Blocked {blocked_user} for {time}"
|
||||||
msgstr "Zablokowano {blocked_user} na {time}"
|
msgstr "Zablokowano {blocked_user} na {time}"
|
||||||
|
|
||||||
#: rcgcdw.py:142
|
#: rcgcdw.py:150
|
||||||
msgid "Reapplied the block on {blocked_user}"
|
msgid "Changed block settings for {blocked_user}"
|
||||||
msgstr "Ponownie nałożono blokadę na {blocked_user}"
|
msgstr "Zmienił ustawienia blokady {blocked_user}"
|
||||||
|
|
||||||
#: rcgcdw.py:148
|
#: rcgcdw.py:156
|
||||||
msgid "Removed the block on {blocked_user}"
|
msgid "Unblocked {blocked_user}"
|
||||||
msgstr "Usunięto blokadę na {blocked_user}"
|
msgstr "Zablokował {blocked_user} na {time}"
|
||||||
|
|
||||||
#: rcgcdw.py:153
|
#: rcgcdw.py:161
|
||||||
msgid "Left a comment on {target}'s profile"
|
msgid "Left a comment on {target}'s profile"
|
||||||
msgstr "Pozostawiono komentarz na profilu użytkownika {target}"
|
msgstr "Pozostawiono komentarz na profilu użytkownika {target}"
|
||||||
|
|
||||||
#: rcgcdw.py:156
|
#: rcgcdw.py:164
|
||||||
msgid "Replied to a comment on {target}'s profile"
|
msgid "Replied to a comment on {target}'s profile"
|
||||||
msgstr "Odpowiedziano na komentarz na profilu użytkownika {target}"
|
msgstr "Odpowiedziano na komentarz na profilu użytkownika {target}"
|
||||||
|
|
||||||
#: rcgcdw.py:159
|
#: rcgcdw.py:167
|
||||||
msgid "Edited a comment on {target}'s profile"
|
msgid "Edited a comment on {target}'s profile"
|
||||||
msgstr "Edytowano komentarz na profilu użytkownika {target}"
|
msgstr "Edytowano komentarz na profilu użytkownika {target}"
|
||||||
|
|
||||||
#: rcgcdw.py:163
|
#: rcgcdw.py:171
|
||||||
msgid "Location"
|
msgid "Location"
|
||||||
msgstr "Lokacja"
|
msgstr "Lokacja"
|
||||||
|
|
||||||
#: rcgcdw.py:165
|
#: rcgcdw.py:173
|
||||||
msgid "About me"
|
msgid "About me"
|
||||||
msgstr "O mnie"
|
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
|
#: 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"
|
msgid "Unknown"
|
||||||
msgstr "Nieznana"
|
msgstr "Nieznana"
|
||||||
|
|
||||||
#: rcgcdw.py:186
|
#: rcgcdw.py:194
|
||||||
msgid "Edited {target}'s profile"
|
msgid "Edited {target}'s profile"
|
||||||
msgstr "Edytowano profil użytkownika {target}"
|
msgstr "Edytowano profil użytkownika {target}"
|
||||||
|
|
||||||
#: rcgcdw.py:187
|
#: rcgcdw.py:195
|
||||||
msgid "{field} field changed to: {desc}"
|
msgid "{field} field changed to: {desc}"
|
||||||
msgstr "pole {field} zostało zmienione na: {desc}"
|
msgstr "pole {field} zostało zmienione na: {desc}"
|
||||||
|
|
||||||
#: rcgcdw.py:190
|
#: rcgcdw.py:198
|
||||||
msgid "Removed a comment on {target}'s profile"
|
msgid "Deleted a comment on {target}'s profile"
|
||||||
msgstr "Usunięto komentarz na profilu użytkownika {target}"
|
msgstr "Usunął komentarz na profilu użytkownika {target}"
|
||||||
|
|
||||||
#: rcgcdw.py:193
|
#: rcgcdw.py:201
|
||||||
msgid "Changed {target}'s user groups"
|
msgid "Changed group membership for {target}"
|
||||||
msgstr "Zmieniono grupy użytkownika {target}"
|
msgstr "Zmieniono przynależność do grup dla {target}"
|
||||||
|
|
||||||
#: rcgcdw.py:197 rcgcdw.py:199
|
#: rcgcdw.py:205 rcgcdw.py:207
|
||||||
msgid "none"
|
msgid "none"
|
||||||
msgstr "brak"
|
msgstr "brak"
|
||||||
|
|
||||||
#: rcgcdw.py:200
|
#: rcgcdw.py:208 rcgcdw.py:302
|
||||||
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
|
|
||||||
msgid "No description provided"
|
msgid "No description provided"
|
||||||
msgstr "Nie podano opisu zmian"
|
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"
|
msgid "Unable to process the event"
|
||||||
msgstr "Nie udało się odczytać wydarzenia"
|
msgstr "Nie udało się odczytać wydarzenia"
|
||||||
|
|
||||||
#: rcgcdw.py:366
|
#: rcgcdw.py:387
|
||||||
msgid "error"
|
msgid "error"
|
||||||
msgstr "błąd"
|
msgstr "błąd"
|
||||||
|
|
||||||
#: rcgcdw.py:451
|
#: rcgcdw.py:485
|
||||||
msgid "Connection status"
|
msgid "Connection status"
|
||||||
msgstr "Problem z połączeniem"
|
msgstr "Problem z połączeniem"
|
||||||
|
|
||||||
#: rcgcdw.py:451
|
#: rcgcdw.py:485
|
||||||
msgid "https://i.imgur.com/2jWQEt1.png"
|
|
||||||
msgstr "https://i.imgur.com/2jWQEt1.png"
|
|
||||||
|
|
||||||
#: rcgcdw.py:451
|
|
||||||
msgid "{wiki} seems to be down or unreachable."
|
msgid "{wiki} seems to be down or unreachable."
|
||||||
msgstr "{wiki} nie działa lub jest nieosiągalna."
|
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"
|
||||||
|
|
362
rcgcdw.pot
362
rcgcdw.pot
|
@ -5,7 +5,7 @@
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"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"
|
"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"
|
||||||
|
@ -15,233 +15,285 @@ msgstr ""
|
||||||
"Generated-By: pygettext.py 1.5\n"
|
"Generated-By: pygettext.py 1.5\n"
|
||||||
|
|
||||||
|
|
||||||
#: rcgcdw.py:90
|
#: rcgcdw.py:84
|
||||||
msgid "New file version {name}"
|
msgid "(N!) "
|
||||||
msgstr ""
|
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}))"
|
msgid "([preview]({link}) | [undo]({undolink}))"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:91 rcgcdw.py:107
|
#: rcgcdw.py:99 rcgcdw.py:115
|
||||||
msgid "Options"
|
msgid "Options"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:93
|
#: rcgcdw.py:101
|
||||||
msgid "New file {name}"
|
msgid "Uploaded {name}"
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rcgcdw.py:107
|
|
||||||
msgid "([preview]({link}))"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:108
|
#: rcgcdw.py:108
|
||||||
|
msgid "**No license!**"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rcgcdw.py:115
|
||||||
|
msgid "([preview]({link}))"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rcgcdw.py:116
|
||||||
msgid ""
|
msgid ""
|
||||||
"{desc}\n"
|
"{desc}\n"
|
||||||
"License: {license}"
|
"License: {license}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:113
|
#: rcgcdw.py:121
|
||||||
msgid "Deleted {article}"
|
msgid "Deleted page {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}\""
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:126
|
#: rcgcdw.py:126
|
||||||
msgid "Moved {article} to redirect page ({title})"
|
msgid "Deleted redirect {article} by overwriting"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:130
|
#: 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}"
|
msgid "Moved protection settings from {article} to {title}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:135
|
#: rcgcdw.py:143
|
||||||
msgid "infinity and beyond"
|
msgid "infinity and beyond"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:136
|
#: rcgcdw.py:144
|
||||||
msgid "Blocked {blocked_user} for {time}"
|
msgid "Blocked {blocked_user} for {time}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:142
|
#: rcgcdw.py:150
|
||||||
msgid "Reapplied the block on {blocked_user}"
|
msgid "Changed block settings for {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"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:156
|
#: 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"
|
msgid "Replied to a comment on {target}'s profile"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:159
|
#: rcgcdw.py:167
|
||||||
msgid "Edited a comment on {target}'s profile"
|
msgid "Edited a comment on {target}'s profile"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:163
|
#: rcgcdw.py:171
|
||||||
msgid "Location"
|
msgid "Location"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:165
|
#: rcgcdw.py:173
|
||||||
msgid "About me"
|
msgid "About me"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:185
|
#: rcgcdw.py:175
|
||||||
msgid "Unknown"
|
msgid "Google link"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:186
|
#: rcgcdw.py:177
|
||||||
msgid "Edited {target}'s profile"
|
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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:187
|
#: rcgcdw.py:187
|
||||||
msgid "{field} field changed to: {desc}"
|
msgid "VK link"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:190
|
#: rcgcdw.py:189
|
||||||
msgid "Removed a comment on {target}'s profile"
|
msgid "XVL link"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rcgcdw.py:191
|
||||||
|
msgid "Steam link"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:193
|
#: rcgcdw.py:193
|
||||||
msgid "Changed {target}'s user groups"
|
msgid "Unknown"
|
||||||
msgstr ""
|
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"
|
msgid "none"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:200
|
#: rcgcdw.py:208 rcgcdw.py:302
|
||||||
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
|
|
||||||
msgid "No description provided"
|
msgid "No description provided"
|
||||||
msgstr ""
|
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"
|
msgid "Unable to process the event"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:366
|
#: rcgcdw.py:387
|
||||||
msgid "error"
|
msgid "error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:451
|
#: rcgcdw.py:485
|
||||||
msgid "Connection status"
|
msgid "Connection status"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rcgcdw.py:451
|
#: rcgcdw.py:485
|
||||||
msgid "https://i.imgur.com/2jWQEt1.png"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rcgcdw.py:451
|
|
||||||
msgid "{wiki} seems to be down or unreachable."
|
msgid "{wiki} seems to be down or unreachable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
100
rcgcdw.py
100
rcgcdw.py
|
@ -8,10 +8,6 @@ from urllib.parse import quote_plus
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
#logging.warning('Watch out!')
|
#logging.warning('Watch out!')
|
||||||
#DEBUG, INFO, WARNING, ERROR, CRITICAL
|
#DEBUG, INFO, WARNING, ERROR, CRITICAL
|
||||||
pl = gettext.translation('rcgcdw', localedir='locale', languages=['pl'])
|
|
||||||
pl.install()
|
|
||||||
_ = lambda s: s
|
|
||||||
|
|
||||||
with open("settings.json") as sfile:
|
with open("settings.json") as sfile:
|
||||||
settings = json.load(sfile)
|
settings = json.load(sfile)
|
||||||
if settings["limitrefetch"] < settings["limit"] and settings["limitrefetch"]!=-1:
|
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:
|
with open("lastchange.txt", 'w') as sfile:
|
||||||
sfile.write("")
|
sfile.write("")
|
||||||
logging.info("Current settings: {settings}".format(settings=settings))
|
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):
|
def send(message, name, avatar):
|
||||||
req = requests.post(settings["webhookURL"], data={"content": message, "avatar_url": avatar, "username": name}, timeout=10)
|
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"
|
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:
|
else:
|
||||||
embed["author"]["icon_url"] = "https://framapic.org/VBVcOznftNsV/4a0fbBL7wkUo.png"
|
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
|
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")
|
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 = ""
|
undolink = ""
|
||||||
|
@ -95,17 +95,17 @@ def webhook_formatter(action, timestamp, **params):
|
||||||
colornumber = 12390624
|
colornumber = 12390624
|
||||||
img_timestamp = [x for x in img_info[1]["timestamp"] if x.isdigit()]
|
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:])
|
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)}]
|
embed["fields"] = [{"name": _("Options"), "value": _("([preview]({link}) | [undo]({undolink}))").format(link=embed["image"]["url"], undolink=undolink)}]
|
||||||
else:
|
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")
|
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:
|
if article_content is None:
|
||||||
logging.warning("Something went wrong when getting license for the image")
|
logging.warning("Something went wrong when getting license for the image")
|
||||||
return 0
|
return 0
|
||||||
content = list(article_content.values())[0]['revisions'][0]['*'].lower()
|
content = list(article_content.values())[0]['revisions'][0]['*'].lower()
|
||||||
if "{{license" not in content:
|
if "{{license" not in content:
|
||||||
license = "**No license!**"
|
license = _("**No license!**")
|
||||||
else:
|
else:
|
||||||
matches = re.search(r"\{\{license\ (.*?)\}\}", content)
|
matches = re.search(r"\{\{license\ (.*?)\}\}", content)
|
||||||
if matches is not None:
|
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)
|
link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded)
|
||||||
embed["author"]["icon_url"] = "https://framapic.org/9Rgw6Vkx1L1b/R9WrMWJ6umeX.png"
|
embed["author"]["icon_url"] = "https://framapic.org/9Rgw6Vkx1L1b/R9WrMWJ6umeX.png"
|
||||||
colornumber = 1
|
colornumber = 1
|
||||||
embed["title"] = _("Deleted {article}").format(article=params["title"])
|
embed["title"] = _("Deleted page {article}").format(article=params["title"])
|
||||||
elif action == 7:
|
elif action == 7:
|
||||||
link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded)
|
link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded)
|
||||||
embed["author"]["icon_url"] = "https://framapic.org/9Rgw6Vkx1L1b/R9WrMWJ6umeX.png"
|
embed["author"]["icon_url"] = "https://framapic.org/9Rgw6Vkx1L1b/R9WrMWJ6umeX.png"
|
||||||
colornumber = 1
|
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:
|
elif action == 14:
|
||||||
link = params["targetlink"]
|
link = params["targetlink"]
|
||||||
embed["author"]["icon_url"] = "https://i.imgur.com/ZX02KBf.png"
|
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"))
|
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:
|
elif action == 15:
|
||||||
link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded)
|
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"
|
embed["author"]["icon_url"]= "https://i.imgur.com/ZX02KBf.png"
|
||||||
elif action == 16:
|
elif action == 16:
|
||||||
link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded)
|
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:
|
elif action == 19:
|
||||||
link = "https://{wiki}.gamepedia.com/{user}".format(wiki=settings["wiki"], user=params["blocked_user"].replace(" ", "_").replace(')', '\)'))
|
link = "https://{wiki}.gamepedia.com/{user}".format(wiki=settings["wiki"], user=params["blocked_user"].replace(" ", "_").replace(')', '\)'))
|
||||||
user = params["blocked_user"].split(':')[1]
|
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
|
colornumber = 1
|
||||||
embed["author"]["icon_url"] = "https://i.imgur.com/g7KgZHf.png"
|
embed["author"]["icon_url"] = "https://i.imgur.com/g7KgZHf.png"
|
||||||
elif action == 18:
|
elif action == 18:
|
||||||
link = "https://{wiki}.gamepedia.com/{user}".format(wiki=settings["wiki"], user=params["blocked_user"].replace(" ", "_").replace(')', '\)'))
|
link = "https://{wiki}.gamepedia.com/{user}".format(wiki=settings["wiki"], user=params["blocked_user"].replace(" ", "_").replace(')', '\)'))
|
||||||
user = params["blocked_user"].split(':')[1]
|
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
|
colornumber = 1
|
||||||
embed["author"]["icon_url"] = "https://i.imgur.com/g7KgZHf.png"
|
embed["author"]["icon_url"] = "https://i.imgur.com/g7KgZHf.png"
|
||||||
elif action == 25:
|
elif action == 25:
|
||||||
|
@ -172,57 +172,58 @@ def webhook_formatter(action, timestamp, **params):
|
||||||
elif params["field"] == "profile-aboutme":
|
elif params["field"] == "profile-aboutme":
|
||||||
field = _("About me")
|
field = _("About me")
|
||||||
elif params["field"] == "profile-link-google":
|
elif params["field"] == "profile-link-google":
|
||||||
field = "Google link"
|
field = _("Google link")
|
||||||
elif params["field"] == "profile-link-facebook":
|
elif params["field"] == "profile-link-facebook":
|
||||||
field = "Facebook link"
|
field = _("Facebook link")
|
||||||
elif params["field"] == "profile-link-twitter":
|
elif params["field"] == "profile-link-twitter":
|
||||||
field = "Twitter link"
|
field = _("Twitter link")
|
||||||
elif params["field"] == "profile-link-reddit":
|
elif params["field"] == "profile-link-reddit":
|
||||||
field = "Reddit link"
|
field = _("Reddit link")
|
||||||
elif params["field"] == "profile-link-twitch":
|
elif params["field"] == "profile-link-twitch":
|
||||||
field = "Twitch link"
|
field = _("Twitch link")
|
||||||
elif params["field"] == "profile-link-psn":
|
elif params["field"] == "profile-link-psn":
|
||||||
field = "PSN link"
|
field = _("PSN link")
|
||||||
elif params["field"] == "profile-link-vk":
|
elif params["field"] == "profile-link-vk":
|
||||||
field = "VK link"
|
field = _("VK link")
|
||||||
elif params["field"] == "profile-link-xbl":
|
elif params["field"] == "profile-link-xbl":
|
||||||
field = "XVL link"
|
field = _("XVL link")
|
||||||
elif params["field"] == "profile-link-steam":
|
elif params["field"] == "profile-link-steam":
|
||||||
field = "Steam link"
|
field = _("Steam link")
|
||||||
else:
|
else:
|
||||||
field = _("Unknown")
|
field = _("Unknown")
|
||||||
embed["title"] = _("Edited {target}'s profile").format(target=params["target"])
|
embed["title"] = _("Edited {target}'s profile").format(target=params["target"])
|
||||||
params["desc"] = _("{field} field changed to: {desc}").format(field=field, desc=params["desc"])
|
params["desc"] = _("{field} field changed to: {desc}").format(field=field, desc=params["desc"])
|
||||||
elif action == 27:
|
elif action == 27:
|
||||||
link = "https://{wiki}.gamepedia.com/UserProfile:{target}".format(wiki=settings["wiki"], target=params["target"].replace(" ", "_").replace(')', '\)'))
|
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:
|
elif action == 20:
|
||||||
link = "https://{wiki}.gamepedia.com/"+params["user"].replace(" ", "_").replace(')', '\)')
|
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(' '):
|
if params["old_groups"].count(' ') < params["new_groups"].count(' '):
|
||||||
embed["thumbnail"]["url"] = "https://i.imgur.com/WnGhF5g.gif"
|
embed["thumbnail"]["url"] = "https://i.imgur.com/WnGhF5g.gif"
|
||||||
if len(params["old_groups"]) < 4:
|
if len(params["old_groups"]) < 4:
|
||||||
params["old_groups"] = _("none")
|
params["old_groups"] = _("none")
|
||||||
if len(params["new_groups"]) < 4:
|
if len(params["new_groups"]) < 4:
|
||||||
params["new_groups"] = _("none")
|
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:
|
elif action == 2:
|
||||||
link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded)
|
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"
|
embed["author"]["icon_url"] ="https://i.imgur.com/Lfk0wuw.png"
|
||||||
params["desc"] = params["settings"] + " | " + params["desc"]
|
params["desc"] = params["settings"] + " | " + params["desc"]
|
||||||
elif action == 3:
|
elif action == 3:
|
||||||
link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded)
|
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"]
|
params["desc"] = params["settings"] + " | " + params["desc"]
|
||||||
embed["author"]["icon_url"] ="https://i.imgur.com/Lfk0wuw.png"
|
embed["author"]["icon_url"] ="https://i.imgur.com/Lfk0wuw.png"
|
||||||
elif action == 4:
|
elif action == 4:
|
||||||
link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded)
|
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"
|
embed["author"]["icon_url"] ="https://i.imgur.com/Lfk0wuw.png"
|
||||||
elif action == 9:
|
elif action == 9:
|
||||||
link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded)
|
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:
|
elif action == 11:
|
||||||
link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded)
|
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"])
|
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"])
|
embed["title"] = _("Restored {article}").format(article=params["title"])
|
||||||
elif action == 10:
|
elif action == 10:
|
||||||
link = "https://{wiki}.gamepedia.com/Special:RecentChanges".format(wiki=settings["wiki"])
|
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:
|
elif action == 12:
|
||||||
link = "https://{wiki}.gamepedia.com/Special:RecentChanges".format(wiki=settings["wiki"])
|
link = "https://{wiki}.gamepedia.com/Special:RecentChanges".format(wiki=settings["wiki"])
|
||||||
embed["title"] = _("Imported interwiki")
|
embed["title"] = _("Imported interwiki")
|
||||||
elif action == 21:
|
elif action == 21:
|
||||||
link = "https://{wiki}.gamepedia.com/Special:RecentChanges".format(wiki=settings["wiki"])
|
link = "https://{wiki}.gamepedia.com/Special:RecentChanges".format(wiki=settings["wiki"])
|
||||||
embed["title"] = _("Edited abuse filter number {number}").format(number=params["filternr"])
|
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)
|
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:
|
elif action == 22:
|
||||||
link = "https://{wiki}.gamepedia.com/Special:Interwiki".format(wiki=settings["wiki"])
|
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"])
|
params["desc"] =_("Prefix: {prefix}, website: {website} | {desc}").format(desc=params["desc"], prefix=params["prefix"], website=params["website"])
|
||||||
elif action == 23:
|
elif action == 23:
|
||||||
link = "https://{wiki}.gamepedia.com/Special:Interwiki".format(wiki=settings["wiki"])
|
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"])
|
params["desc"] =_("Prefix: {prefix}, website: {website} | {desc}").format(desc=params["desc"], prefix=params["prefix"], website=params["website"])
|
||||||
elif action == 24:
|
elif action == 24:
|
||||||
link = "https://{wiki}.gamepedia.com/Special:Interwiki".format(wiki=settings["wiki"])
|
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"])
|
params["desc"] =_("Prefix: {prefix} | {desc}").format(desc=params["desc"], prefix=params["prefix"])
|
||||||
elif action == 30:
|
elif action == 30:
|
||||||
link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded)
|
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"])
|
params["desc"] = _("Model changed from {old} to {new}: {reason}").format(old=params["oldmodel"], new=params["newmodel"], reason=params["desc"])
|
||||||
elif action == 31:
|
elif action == 31:
|
||||||
link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded)
|
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:
|
elif action == 35:
|
||||||
link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded)
|
link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=article_encoded)
|
||||||
embed["title"] = _("Deleted a tag \"{tag}\"").format(article=params["additional"]["tag"])
|
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:
|
else:
|
||||||
logging.warning("No entry for {event} with params: {params}".format(event=action, params=params))
|
logging.warning("No entry for {event} with params: {params}".format(event=action, params=params))
|
||||||
embed["author"]["name"] = params["user"]
|
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["color"] = random.randrange(1, 16777215) if colornumber is None else math.floor(colornumber)
|
||||||
embed["timestamp"] = timestamp
|
embed["timestamp"] = timestamp
|
||||||
data["embeds"].append(dict(embed))
|
data["embeds"].append(dict(embed))
|
||||||
|
data['avatar_url'] = settings["avatars"]["embed"]
|
||||||
formatted_embed = json.dumps(data, indent=4)
|
formatted_embed = json.dumps(data, indent=4)
|
||||||
headers = {'Content-Type': 'application/json'}
|
headers = {'Content-Type': 'application/json'}
|
||||||
#logging.debug(data)
|
#logging.debug(data)
|
||||||
|
@ -322,7 +330,7 @@ def first_pass(change):
|
||||||
elif logtype=="import" and logaction=="interwiki":
|
elif logtype=="import" and logaction=="interwiki":
|
||||||
webhook_formatter(12, change["timestamp"], user=change["user"], desc=parsedcomment)
|
webhook_formatter(12, change["timestamp"], user=change["user"], desc=parsedcomment)
|
||||||
elif logtype=="merge" :
|
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":
|
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
|
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":
|
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"])
|
webhook_formatter(34, change["timestamp"], user=change["user"], title=change["title"], desc=parsedcomment, additional=change["params"])
|
||||||
elif logtype=="managetags" and logaction=="delete":
|
elif logtype=="managetags" and logaction=="delete":
|
||||||
webhook_formatter(35, change["timestamp"], user=change["user"], title=change["title"], desc=parsedcomment, additional=change["params"])
|
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":
|
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:
|
else:
|
||||||
logging.warning("No entry matches given change!")
|
logging.warning("No entry matches given change!")
|
||||||
print (change)
|
print (change)
|
||||||
send(_("Unable to process the event"), _("error"), "")
|
send(_("Unable to process the event"), _("error"), settings["avatars"]["no_event"])
|
||||||
return
|
return
|
||||||
if change["type"] == "external": #not sure what happens then, but it's listed as possible type
|
if change["type"] == "external": #not sure what happens then, but it's listed as possible type
|
||||||
logging.warning("External event happened, ignoring.")
|
logging.warning("External event happened, ignoring.")
|
||||||
|
@ -395,7 +407,7 @@ class recent_changes(object):
|
||||||
file_id = int(record.read().strip())
|
file_id = int(record.read().strip())
|
||||||
logging.debug("File_id is {val}".format(val=file_id))
|
logging.debug("File_id is {val}".format(val=file_id))
|
||||||
else:
|
else:
|
||||||
file_id = 9999999
|
file_id = 999999999
|
||||||
def add_cache(self, change):
|
def add_cache(self, change):
|
||||||
self.cache.append(change)
|
self.cache.append(change)
|
||||||
self.ids.append(change["rcid"])
|
self.ids.append(change["rcid"])
|
||||||
|
@ -426,6 +438,8 @@ class recent_changes(object):
|
||||||
logging.warning("Wiki returned %s" % (request.json()))
|
logging.warning("Wiki returned %s" % (request.json()))
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
|
if self.downtimecredibility > 0:
|
||||||
|
self.downtimecredibility -= 1
|
||||||
for change in changes:
|
for change in changes:
|
||||||
if change["rcid"] in self.ids:
|
if change["rcid"] in self.ids:
|
||||||
continue
|
continue
|
||||||
|
@ -468,7 +482,7 @@ class recent_changes(object):
|
||||||
self.downtimecredibility+=15
|
self.downtimecredibility+=15
|
||||||
else:
|
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
|
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()
|
self.last_downtime = time.time()
|
||||||
|
|
||||||
recent_changes = recent_changes()
|
recent_changes = recent_changes()
|
||||||
|
@ -476,9 +490,7 @@ recent_changes.fetch(amount=settings["limitrefetch" ] if settings["limitrefetch"
|
||||||
|
|
||||||
while 1:
|
while 1:
|
||||||
time.sleep(float(settings["cooldown"]))
|
time.sleep(float(settings["cooldown"]))
|
||||||
logging.debug(time.time())
|
|
||||||
recent_changes.fetch()
|
recent_changes.fetch()
|
||||||
logging.debug(time.time())
|
|
||||||
if (recent_changes.day != datetime.date.fromtimestamp(time.time()).day):
|
if (recent_changes.day != datetime.date.fromtimestamp(time.time()).day):
|
||||||
logging.info("A brand new day! Printing the summary and clearing the cache")
|
logging.info("A brand new day! Printing the summary and clearing the cache")
|
||||||
#recent_changes.summary()
|
#recent_changes.summary()
|
||||||
|
|
Loading…
Reference in a new issue