From 19f31a4bfe85eca81bc3ab5cbf7897385ee2ced5 Mon Sep 17 00:00:00 2001 From: 7yultukuri7 Date: Sat, 15 Aug 2020 12:22:38 +0000 Subject: [PATCH 01/11] Add `Japanese` translation --- locale/ja/LC_MESSAGES/discord.mo | Bin 0 -> 494 bytes locale/ja/LC_MESSAGES/discord.po | 34 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 locale/ja/LC_MESSAGES/discord.mo create mode 100644 locale/ja/LC_MESSAGES/discord.po diff --git a/locale/ja/LC_MESSAGES/discord.mo b/locale/ja/LC_MESSAGES/discord.mo new file mode 100644 index 0000000000000000000000000000000000000000..0e8b7efc305ee298d1431f36944928e32b173488 GIT binary patch literal 494 zcmYk2%T59@6oxgrnx$(OUAWNTnOii$0>%*r#V|l%yza_y9LuGhv_H_pfiCxRGLdc$qg%* zK#k<^p3gX3N^|54v5?9@qH{ih%Vn-1m6SMxehN*6%-Dy}Vg@M*{m=)$3c)D}LK=n@ z-^vhb2H%WV%o!IolD#mc(KK$;HdHshGRHG2 zh(#tRT;!Bg$J{uB`BJetw53{TN<{H<)QzA<*4u_(a~|Ld1*-KB?$=4ki5s|qv-J(W ClaWXO literal 0 HcmV?d00001 diff --git a/locale/ja/LC_MESSAGES/discord.po b/locale/ja/LC_MESSAGES/discord.po new file mode 100644 index 0000000..9f2b491 --- /dev/null +++ b/locale/ja/LC_MESSAGES/discord.po @@ -0,0 +1,34 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the RcGcDb package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: RcGcDb\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-08-13 21:09+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ja\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/discord.py:25 +msgid "wiki deleted" +msgstr "" + +#: src/discord.py:25 src/discord.py:26 +msgid "wiki inaccessible" +msgstr "" + +#: src/discord.py:27 +msgid "unknown error" +msgstr "" + +#: src/discord.py:28 +#, python-brace-format +msgid "This recent changes webhook has been removed for `{reason}`!" +msgstr "" From 0da65f04add383f976a4495eb3726bd0e1199262 Mon Sep 17 00:00:00 2001 From: 7yultukuri7 Date: Sat, 15 Aug 2020 13:22:08 +0000 Subject: [PATCH 02/11] Update `Japanese` translation Currently translated at 100.0% (4 of 4 strings) Translation: Wiki-Bot/RcGcDb Translate-URL: https://weblate.frisk.space/projects/wiki-bot/rcgcdb/ja/ --- locale/ja/LC_MESSAGES/discord.mo | Bin 494 -> 864 bytes locale/ja/LC_MESSAGES/discord.po | 17 ++++++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/locale/ja/LC_MESSAGES/discord.mo b/locale/ja/LC_MESSAGES/discord.mo index 0e8b7efc305ee298d1431f36944928e32b173488..7ddb7a5c4d1bc6d3695d297ed26984a0f73bbd73 100644 GIT binary patch delta 458 zcmYk0O-n*S6o$t%+tea=LBzCbB?N6OTDoZ$*f#Kb@6^3%bKzdgMTE_`QOm$WN(`cs zvZ5q#(TCKoU(h;=lV+P*^anbA5FU7VXXd=`ob&B`bH`sjt{lPYMTQYS(uYKlW+jnn zB!vth&qzP=f(#<>NX0?OFX}u}>LJ8~>UI(`f;xmchU!B_+kd(6gw{C0_ttPSryDl4 zn96vRs=C4#nN4FXq?=}#>WWQ6jB)HQo2yKt3#LVbYZg;%ldlIy$qEm1GsY>iEYl(} zBWzHOMOc(+?Tf(`Rb{qqgd&X0TILc{quv?KoAn1=zNztvn?k@5uODnQp0XgWYsFN( zPyxBqI4XS>??L22Zh|-jDX`mF3PibU1rV1YlOWTzRQfAl1d#)|1>zCJ9tMA^f_&U& z>igRuE\n" +"Language-Team: Japanese \n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 4.1.1\n" #: src/discord.py:25 msgid "wiki deleted" -msgstr "" +msgstr "ウィキを削除しました" #: src/discord.py:25 src/discord.py:26 msgid "wiki inaccessible" -msgstr "" +msgstr "ウィキにアクセスできません" #: src/discord.py:27 msgid "unknown error" -msgstr "" +msgstr "不明なエラー" #: src/discord.py:28 #, python-brace-format msgid "This recent changes webhook has been removed for `{reason}`!" -msgstr "" +msgstr "最近の変更を表示するためのwebhookは `{reason}`により削除されました!" From 9888cd6e4f512cd07bc65e76a9c08249d0a71ba3 Mon Sep 17 00:00:00 2001 From: Winston Sung Date: Sun, 16 Aug 2020 16:34:25 +0000 Subject: [PATCH 03/11] Update `Chinese (Traditional)` translation Currently translated at 100.0% (4 of 4 strings) Translation: Wiki-Bot/RcGcDb Translate-URL: https://weblate.frisk.space/projects/wiki-bot/rcgcdb/zh-hant/ --- locale/zh-hant/LC_MESSAGES/discord.mo | Bin 820 -> 820 bytes locale/zh-hant/LC_MESSAGES/discord.po | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/locale/zh-hant/LC_MESSAGES/discord.mo b/locale/zh-hant/LC_MESSAGES/discord.mo index e98013dcb0ce2cb29250ad22ff05ebfccc6e8ae6..58c2071dda43b6a6fddce608b78433ce1debdafe 100644 GIT binary patch delta 71 zcmV-N0J#6O2DApSTLA|*ATc*OF*B250k#$`Xkl)2FFp!PVQy!2VP|DJAbMymXp=4i dp$zE1k>;GA=&p+9o3xYL0#XO%t(fJHmH>2R9R>gZ delta 71 zcmV-N0J#6O2DApSTLA|%ATcvKH8hiA0k#%jNMUYtFFp!PVQy!2VP|DJAbMzDNRuuC dp$z7nfat%G=(nHdl)01J0#XO)sH)|aj{tbg9Wwv` diff --git a/locale/zh-hant/LC_MESSAGES/discord.po b/locale/zh-hant/LC_MESSAGES/discord.po index c50ff9e..d9ed211 100644 --- a/locale/zh-hant/LC_MESSAGES/discord.po +++ b/locale/zh-hant/LC_MESSAGES/discord.po @@ -8,11 +8,11 @@ msgstr "" "Project-Id-Version: RcGcDb\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-08-11 23:23+0200\n" -"PO-Revision-Date: 2020-08-13 13:54+0000\n" -"Last-Translator: Leo-768 \n" +"PO-Revision-Date: 2020-08-17 17:13+0000\n" +"Last-Translator: Winston Sung \n" "Language-Team: Chinese (Traditional) \n" -"Language: zh_Hant\n" +"wiki-bot/rcgcdb/zh-hant/>\n" +"Language: zh-hant\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -25,7 +25,7 @@ msgstr "wiki 已刪除" #: src/discord.py:25 src/discord.py:26 msgid "wiki inaccessible" -msgstr "wiki 無法訪問" +msgstr "wiki 無法存取" #: src/discord.py:27 msgid "unknown error" @@ -34,4 +34,4 @@ msgstr "未知錯誤" #: src/discord.py:28 #, python-brace-format msgid "This recent changes webhook has been removed for `{reason}`!" -msgstr "此最近跟改 webhook 因為 `{reason}` 而被移除!" +msgstr "此近期變更 webhook 因為 `{reason}` 而被移除!" From 7f05fdb893d199d206367a85dc2e98795ca0ae93 Mon Sep 17 00:00:00 2001 From: Dianliang233 Date: Thu, 20 Aug 2020 03:27:32 +0000 Subject: [PATCH 04/11] Add `Chinese (Simplified)` translation --- locale/zh-hans/LC_MESSAGES/discord.mo | Bin 0 -> 528 bytes locale/zh-hans/LC_MESSAGES/discord.po | 34 ++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 locale/zh-hans/LC_MESSAGES/discord.mo create mode 100644 locale/zh-hans/LC_MESSAGES/discord.po diff --git a/locale/zh-hans/LC_MESSAGES/discord.mo b/locale/zh-hans/LC_MESSAGES/discord.mo new file mode 100644 index 0000000000000000000000000000000000000000..39f49c5d4cdda18b972b54bfd1c64c6e8161edbf GIT binary patch literal 528 zcmZ`#%Wm5+5KNGsbj&#i9(qWSt|Yq!;?i+Y#g-ETR&3Zxlk`SQYl*c?3M8G^f8^JC z?6-7P2lc4~47el*yF2sy@Wb04VV`(J{75_?ej+yL5P#9{LQ6Qu!*8g#EUOHD>9t2OgpoZu#jkGJ@ z)*{28-sWI~r^e<&yTD{cmM?>Ss{VVmy;hfP%U;;^ V?%@g*nr$?9TTkqZ-|}1D-XFBoon-(3 literal 0 HcmV?d00001 diff --git a/locale/zh-hans/LC_MESSAGES/discord.po b/locale/zh-hans/LC_MESSAGES/discord.po new file mode 100644 index 0000000..ad9980f --- /dev/null +++ b/locale/zh-hans/LC_MESSAGES/discord.po @@ -0,0 +1,34 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the RcGcDb package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: RcGcDb\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-08-13 21:09+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: zh-hans\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/discord.py:25 +msgid "wiki deleted" +msgstr "" + +#: src/discord.py:25 src/discord.py:26 +msgid "wiki inaccessible" +msgstr "" + +#: src/discord.py:27 +msgid "unknown error" +msgstr "" + +#: src/discord.py:28 +#, python-brace-format +msgid "This recent changes webhook has been removed for `{reason}`!" +msgstr "" From 53f77a5494867ff4b51f22ccb406c9bb35d5df4b Mon Sep 17 00:00:00 2001 From: Dianliang233 Date: Thu, 20 Aug 2020 03:27:50 +0000 Subject: [PATCH 05/11] Update `Chinese (Simplified)` translation Currently translated at 100.0% (4 of 4 strings) Translation: Wiki-Bot/RcGcDb Translate-URL: https://weblate.frisk.space/projects/wiki-bot/rcgcdb/zh-hans/ --- locale/zh-hans/LC_MESSAGES/discord.mo | Bin 528 -> 821 bytes locale/zh-hans/LC_MESSAGES/discord.po | 17 ++++++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/locale/zh-hans/LC_MESSAGES/discord.mo b/locale/zh-hans/LC_MESSAGES/discord.mo index 39f49c5d4cdda18b972b54bfd1c64c6e8161edbf..0149c7181308562d69aac06f8fed0664395b7938 100644 GIT binary patch delta 383 zcmbQhvX!m=o)F7a1|VPsVi_QI0b+I_&H-W&=m26HAnpWWULZaO#5_QJ1&9TK_#qHq zV`O0X45UHoPBB5`*_jy__<(#7APrKd45Wd|;D80l0xGR%0E&YxX9&s2ELJE=O-{`# zQAo~6%u7!#Rwz$R%E-^pR>(*!R!B-s%>&Bk=9i_WD5T{VDI`=Er6v~V=hY@CGL+_J z=jE5@DWnz^kUTN#;e JPGrnv1OQb$36TH* diff --git a/locale/zh-hans/LC_MESSAGES/discord.po b/locale/zh-hans/LC_MESSAGES/discord.po index ad9980f..f276857 100644 --- a/locale/zh-hans/LC_MESSAGES/discord.po +++ b/locale/zh-hans/LC_MESSAGES/discord.po @@ -8,27 +8,30 @@ msgstr "" "Project-Id-Version: RcGcDb\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-08-13 21:09+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: Automatically generated\n" -"Language-Team: none\n" +"PO-Revision-Date: 2020-08-21 04:13+0000\n" +"Last-Translator: Dianliang233 \n" +"Language-Team: Chinese (Simplified) \n" "Language: zh-hans\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 4.1.1\n" #: src/discord.py:25 msgid "wiki deleted" -msgstr "" +msgstr "wiki 已删除" #: src/discord.py:25 src/discord.py:26 msgid "wiki inaccessible" -msgstr "" +msgstr "wiki 无法访问" #: src/discord.py:27 msgid "unknown error" -msgstr "" +msgstr "未知错误" #: src/discord.py:28 #, python-brace-format msgid "This recent changes webhook has been removed for `{reason}`!" -msgstr "" +msgstr "此最近更改 webhook 已因为 `{reason}` 而被移除!" From 4f69dae586479ead7d65c06f4c1c31ffedb42af7 Mon Sep 17 00:00:00 2001 From: ptsgrn Date: Thu, 8 Oct 2020 11:43:15 +0200 Subject: [PATCH 06/11] Add `Thai` translation --- locale/th/LC_MESSAGES/discord.mo | Bin 0 -> 486 bytes locale/th/LC_MESSAGES/discord.po | 34 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 locale/th/LC_MESSAGES/discord.mo create mode 100644 locale/th/LC_MESSAGES/discord.po diff --git a/locale/th/LC_MESSAGES/discord.mo b/locale/th/LC_MESSAGES/discord.mo new file mode 100644 index 0000000000000000000000000000000000000000..99b8b12cc4fb9d7bc86e4a75ea5a2ef2f73bb508 GIT binary patch literal 486 zcmYL_O-{ow5QRao%91q;FIa%eBxzyMx)c#;3Y8jKm6QTIHysi~u_JrR&q25aXW}e4 z6wxPrvMs+E&71F??avLTO~DLo$SJ#IA-s>DL~H*ReMcmLN4k*@Yl&IO|OY19lxHF*}Kqs6RN1 zy4`Vnb93sfDqo5mAw}`>H}Oe9R9YScZ#Z)e(0?@2KKr&583yGlrw!h!STjw5$?|MI z3#bUz?Kq>tOZrK?UPj#yy$h`fm7DFObRh}fDJU00sy53CVJuQ-lJ=mv_Ei}k(Lk&+ zJ(nuytT~h9jTTEI7SPk?#d4;~->2==+iZ31gl+E*E>WRbEnvDz!jAohU-veC0EKdn AB>(^b literal 0 HcmV?d00001 diff --git a/locale/th/LC_MESSAGES/discord.po b/locale/th/LC_MESSAGES/discord.po new file mode 100644 index 0000000..feebe0f --- /dev/null +++ b/locale/th/LC_MESSAGES/discord.po @@ -0,0 +1,34 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the RcGcDb package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: RcGcDb\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-08-13 21:09+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: th\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/discord.py:25 +msgid "wiki deleted" +msgstr "" + +#: src/discord.py:25 src/discord.py:26 +msgid "wiki inaccessible" +msgstr "" + +#: src/discord.py:27 +msgid "unknown error" +msgstr "" + +#: src/discord.py:28 +#, python-brace-format +msgid "This recent changes webhook has been removed for `{reason}`!" +msgstr "" From 786464f38d26b437c95c9b0cb5f99996e74d85cd Mon Sep 17 00:00:00 2001 From: Rail Date: Wed, 14 Oct 2020 07:46:18 +0000 Subject: [PATCH 07/11] Update `Polish` translation Currently translated at 100.0% (4 of 4 strings) Translation: Wiki-Bot/RcGcDb Translate-URL: https://weblate.frisk.space/projects/wiki-bot/rcgcdb/pl/ --- locale/pl/LC_MESSAGES/discord.mo | Bin 870 -> 874 bytes locale/pl/LC_MESSAGES/discord.po | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/locale/pl/LC_MESSAGES/discord.mo b/locale/pl/LC_MESSAGES/discord.mo index 4993c8560eee6be0fcc0f4748cfece6fb7977c2e..4e6a9ae278e23ac4d17899052d534b23900ab9be 100644 GIT binary patch delta 78 zcmaFH_KIynh^R0F1A`hf0|P&hwgS@fK-z0!=6!BM16@NC1w%tCQ^U={jNOckMw9O| exeHh2Wu{i;CFZ53=PM)~Z8|bDrF60>vmpSZHx%~( delta 74 zcmaFG_Ka;ph$ue;1A`hf0|SUQ1Jd$9+HGRyeQpB_T|+|!BLgc_v(3Sb-HeQelkYRR Z^XFxzR^=t;RVpMMZ93ALGTD;Z5CBe{6D|M% diff --git a/locale/pl/LC_MESSAGES/discord.po b/locale/pl/LC_MESSAGES/discord.po index 7a915c3..4a6e5aa 100644 --- a/locale/pl/LC_MESSAGES/discord.po +++ b/locale/pl/LC_MESSAGES/discord.po @@ -8,8 +8,8 @@ msgstr "" "Project-Id-Version: RcGcDd\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-08-11 23:14+0200\n" -"PO-Revision-Date: 2020-08-11 20:56+0000\n" -"Last-Translator: Frisk The Evil Goat Overlord \n" +"PO-Revision-Date: 2020-10-14 11:51+0000\n" +"Last-Translator: Rail \n" "Language-Team: Polish \n" "Language: pl\n" @@ -18,7 +18,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2;\n" -"X-Generator: Weblate 4.1.1\n" +"X-Generator: Weblate 4.2.1\n" #: src/discord.py:25 msgid "wiki deleted" @@ -30,7 +30,7 @@ msgstr "wiki przestała być osiągalna" #: src/discord.py:27 msgid "unknown error" -msgstr "nieznany błąd" +msgstr "znieznanego błędu" #: src/discord.py:28 #, python-brace-format From 5d3dc212177f951b312b3b308764b52cf59627e7 Mon Sep 17 00:00:00 2001 From: Philo04 Date: Thu, 15 Oct 2020 19:33:23 +0200 Subject: [PATCH 08/11] Add `Russian` translation --- locale/ru/LC_MESSAGES/discord.mo | Bin 0 -> 571 bytes locale/ru/LC_MESSAGES/discord.po | 34 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 locale/ru/LC_MESSAGES/discord.mo create mode 100644 locale/ru/LC_MESSAGES/discord.po diff --git a/locale/ru/LC_MESSAGES/discord.mo b/locale/ru/LC_MESSAGES/discord.mo new file mode 100644 index 0000000000000000000000000000000000000000..cf5d3fca103d5187697899029916304eb0bbdb4f GIT binary patch literal 571 zcmYLFQBT`25H8!E^0?+{=Us7D!rM=sSmslA6N0g3CSLBB< zR%*o{Z>*JE!S02;mgGpgJuervHjZSrk}Go5RF)K)fw!0!_D4_+cBl^ z6+%EZ)`xNQ@->PN+I07sHliUsJaiJ|gnOu=sELN&PjVuZFx^Toy2ZeOANkblJpu8G BpjH3? literal 0 HcmV?d00001 diff --git a/locale/ru/LC_MESSAGES/discord.po b/locale/ru/LC_MESSAGES/discord.po new file mode 100644 index 0000000..2fec013 --- /dev/null +++ b/locale/ru/LC_MESSAGES/discord.po @@ -0,0 +1,34 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the RcGcDb package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: RcGcDb\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-08-13 21:09+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/discord.py:25 +msgid "wiki deleted" +msgstr "" + +#: src/discord.py:25 src/discord.py:26 +msgid "wiki inaccessible" +msgstr "" + +#: src/discord.py:27 +msgid "unknown error" +msgstr "" + +#: src/discord.py:28 +#, python-brace-format +msgid "This recent changes webhook has been removed for `{reason}`!" +msgstr "" From 5eb950cb57b45870b41d2c9752f2b3ac46a41cb3 Mon Sep 17 00:00:00 2001 From: Philo04 Date: Thu, 15 Oct 2020 17:35:11 +0000 Subject: [PATCH 09/11] Update `Russian` translation Currently translated at 100.0% (4 of 4 strings) Translation: Wiki-Bot/RcGcDb Translate-URL: https://weblate.frisk.space/projects/wiki-bot/rcgcdb/ru/ --- locale/ru/LC_MESSAGES/discord.mo | Bin 571 -> 967 bytes locale/ru/LC_MESSAGES/discord.po | 18 +++++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/locale/ru/LC_MESSAGES/discord.mo b/locale/ru/LC_MESSAGES/discord.mo index cf5d3fca103d5187697899029916304eb0bbdb4f..c5669d029cb0d3b71106eacdb4a846efb2287740 100644 GIT binary patch delta 487 zcmY+8ze@sP7{_1BaH*k|mV!5$9ReGYMwh07`U5=g-nvVDU%0azB1}b6g2JJtt+64{ z(7HU-t=8v-=AgeJ+WX!~MK65#KJWMW8N^=`mG_1CHN%?$OCSRhpa84*=D-V> z1#e&;e1O;#W1rA6_(Hr2ElxAG2yH``p?A<2^ykG9ptQo^N6Xos?ReZ3rjR9W+J-z3 z9xscWtyG@dhR1V4NaTy^SXg{txjcK~3d2+KG`qr%WL~PWeK%=lFz=WQz>r352^gLp$7wS(m2X~12J{V8~^|S delta 77 zcmX@kzMIA3o)F7a1|VPrVi_P-0b*t#)&XJ=umEC4CI$ve5DgN5f{CA^*-aG;&8>`$ KH-|7TWCQ?7nF$~O diff --git a/locale/ru/LC_MESSAGES/discord.po b/locale/ru/LC_MESSAGES/discord.po index 2fec013..ed9b4f4 100644 --- a/locale/ru/LC_MESSAGES/discord.po +++ b/locale/ru/LC_MESSAGES/discord.po @@ -8,27 +8,31 @@ msgstr "" "Project-Id-Version: RcGcDb\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-08-13 21:09+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: Automatically generated\n" -"Language-Team: none\n" +"PO-Revision-Date: 2020-10-19 14:45+0000\n" +"Last-Translator: Philo04 \n" +"Language-Team: Russian \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Generator: Weblate 4.2.1\n" #: src/discord.py:25 msgid "wiki deleted" -msgstr "" +msgstr "вики удалена" #: src/discord.py:25 src/discord.py:26 msgid "wiki inaccessible" -msgstr "" +msgstr "вики недоступна" #: src/discord.py:27 msgid "unknown error" -msgstr "" +msgstr "неизвестная ошибка" #: src/discord.py:28 #, python-brace-format msgid "This recent changes webhook has been removed for `{reason}`!" -msgstr "" +msgstr "Этот вебхук свежих правок был удалён по следующей причине: `{reason}`!" From ab67bc64cd773170a8a73dbfa269550a88132ec4 Mon Sep 17 00:00:00 2001 From: Markus-Rost Date: Fri, 23 Oct 2020 01:24:20 +0200 Subject: [PATCH 10/11] Partially add ManageWiki --- src/formatters/rc.py | 55 +++++++++++++++++++++++++++++++++++++++++++- src/wiki.py | 15 +++++++++++- 2 files changed, 68 insertions(+), 2 deletions(-) diff --git a/src/formatters/rc.py b/src/formatters/rc.py index 68df79c..81b6176 100644 --- a/src/formatters/rc.py +++ b/src/formatters/rc.py @@ -326,6 +326,35 @@ async def compact_formatter(action, change, parsed_comment, categories, recent_c content = "⚙️ "+_( "[{author}]({author_url}) changed wiki settings ({reason})".format(author=author, author_url=author_url, reason=parsed_comment)) + elif action == "managewiki/delete": + content = "🗑️ "+_("[{author}]({author_url}) deleted a wiki *{wiki_name}* ({comment})").format(author=author, author_url=author_url, + wiki_name=change["logparams"].get("wiki", _("Unknown")), comment=parsed_comment) + elif action == "managewiki/lock": + content = "🔒 "+_("[{author}]({author_url}) locked a wiki *{wiki_name}* ({comment})").format( + author=author, author_url=author_url, wiki_name=change["logparams"].get("wiki", _("Unknown")), comment=parsed_comment) + elif action == "managewiki/namespaces": + content = "📦 "+_("[{author}]({author_url}) modified a namespace *{namespace_name}* on *{wiki_name}* ({comment})").format( + author=author, author_url=author_url, namespace_name=change["logparams"].get("namespace", _("Unknown")), + wiki_name=change["logparams"].get("wiki", _("Unknown")), comment=parsed_comment) + elif action == "managewiki/namespaces-delete": + content = "🗑️ " + _( + "[{author}]({author_url}) deleted a namespace *{namespace_name}* on *{wiki_name}* ({comment})").format( + author=author, author_url=author_url, + namespace_name=change["logparams"].get("namespace", _("Unknown")), + wiki_name=change["logparams"].get("wiki", _("Unknown")), comment=parsed_comment) + elif action == "managewiki/rights": + content = "🏅 " + _("[{author}]({author_url}) modified user group *{group_name}* ({comment})").format( + author=author, author_url=author_url, group_name=change["title"][32:], comment=parsed_comment + ) + elif action == "managewiki/undelete": + content = "🏅 " + _("[{author}]({author_url}) restored a wiki *{wiki_name}* ({comment})").format( + author=author, author_url=author_url, wiki_name=change["logparams"].get("wiki", _("Unknown")), comment=parsed_comment + ) + elif action == "managewiki/unlock": + content = "🏅 " + _("[{author}]({author_url}) unlocked a wiki *{wiki_name}* ({comment})").format( + author=author, author_url=author_url, wiki_name=change["logparams"].get("wiki", _("Unknown")), + comment=parsed_comment + ) elif action == "suppressed": content = "👁️ "+_("An action has been hidden by administration.") else: @@ -711,10 +740,34 @@ async def embed_formatter(action, change, parsed_comment, categories, recent_cha link = create_article_path("Special:Tags", WIKI_ARTICLE_PATH) embed["title"] = _("Deactivated a tag \"{tag}\"").format(tag=change["logparams"]["tag"]) elif action == "managewiki/settings": # Miraheze's ManageWiki extension https://github.com/miraheze/ManageWiki - link = create_article_path("") + link = create_article_path("", WIKI_ARTICLE_PATH) embed["title"] = _("Changed wiki settings") if change["logparams"].get("changes", ""): embed.add_field("Setting", change["logparams"].get("changes")) + elif action == "managewiki/delete": + embed["title"] = _("Deleted a \"{wiki}\" wiki").format(wiki=change["logparams"].get("wiki", _("Unknown"))) + link = create_article_path("", WIKI_ARTICLE_PATH) + elif action == "managewiki/lock": + embed["title"] = _("Locked a \"{wiki}\" wiki").format(wiki=change["logparams"].get("wiki", _("Unknown"))) + link = create_article_path("", WIKI_ARTICLE_PATH) + elif action == "managewiki/namespaces": + embed["title"] = _("Modified a \"{namespace_name}\" namespace").format(namespace_name=change["logparams"].get("namespace", _("Unknown"))) + link = create_article_path("", WIKI_ARTICLE_PATH) + embed.add_field(_('Wiki'), change["logparams"].get("wiki", _("Unknown"))) + elif action == "managewiki/namespaces-delete": + embed["title"] = _("Deleted a \"{namespace_name}\" namespace").format( + namespace_name=change["logparams"].get("namespace", _("Unknown"))) + link = create_article_path("", WIKI_ARTICLE_PATH) + embed.add_field(_('Wiki'), change["logparams"].get("wiki", _("Unknown"))) + elif action == "managewiki/rights": + embed["title"] = _("Modified \"{usergroup_name}\" usergroup").format(usergroup_name=change["title"][32:]) + link = create_article_path("", WIKI_ARTICLE_PATH) + elif action == "managewiki/undelete": + embed["title"] = _("Restored a \"{wiki}\" wiki").format(wiki=change["logparams"].get("wiki", _("Unknown"))) + link = create_article_path("", WIKI_ARTICLE_PATH) + elif action == "managewiki/unlock": + embed["title"] = _("Unlocked a \"{wiki}\" wiki").format(wiki=change["logparams"].get("wiki", _("Unknown"))) + link = create_article_path("", WIKI_ARTICLE_PATH) elif action == "suppressed": link = create_article_path("", WIKI_ARTICLE_PATH) embed["title"] = _("Action has been hidden by administration.") diff --git a/src/wiki.py b/src/wiki.py index ee7eaec..ee3b92d 100644 --- a/src/wiki.py +++ b/src/wiki.py @@ -17,7 +17,20 @@ from bs4 import BeautifulSoup logger = logging.getLogger("rcgcdb.wiki") -supported_logs = ["protect/protect", "protect/modify", "protect/unprotect", "upload/overwrite", "upload/upload", "delete/delete", "delete/delete_redir", "delete/restore", "delete/revision", "delete/event", "import/upload", "import/interwiki", "merge/merge", "move/move", "move/move_redir", "protect/move_prot", "block/block", "block/unblock", "block/reblock", "rights/rights", "rights/autopromote", "abusefilter/modify", "abusefilter/create", "interwiki/iw_add", "interwiki/iw_edit", "interwiki/iw_delete", "curseprofile/comment-created", "curseprofile/comment-edited", "curseprofile/comment-deleted", "curseprofile/comment-purged", "curseprofile/profile-edited", "curseprofile/comment-replied", "contentmodel/change", "sprite/sprite", "sprite/sheet", "sprite/slice", "managetags/create", "managetags/delete", "managetags/activate", "managetags/deactivate", "tag/update", "cargo/createtable", "cargo/deletetable", "cargo/recreatetable", "cargo/replacetable", "upload/revert", "managewiki/settings"] +supported_logs = {"protect/protect", "protect/modify", "protect/unprotect", "upload/overwrite", "upload/upload", + "delete/delete", "delete/delete_redir", "delete/restore", "delete/revision", "delete/event", + "import/upload", "import/interwiki", "merge/merge", "move/move", "move/move_redir", + "protect/move_prot", "block/block", "block/unblock", "block/reblock", "rights/rights", + "rights/autopromote", "abusefilter/modify", "abusefilter/create", "interwiki/iw_add", + "interwiki/iw_edit", "interwiki/iw_delete", "curseprofile/comment-created", + "curseprofile/comment-edited", "curseprofile/comment-deleted", "curseprofile/comment-purged", + "curseprofile/profile-edited", "curseprofile/comment-replied", "contentmodel/change", "sprite/sprite", + "sprite/sheet", "sprite/slice", "managetags/create", "managetags/delete", "managetags/activate", + "managetags/deactivate", "tag/update", "cargo/createtable", "cargo/deletetable", + "cargo/recreatetable", "cargo/replacetable", "upload/revert", "newusers/create", + "newusers/autocreate", "newusers/create2", "newusers/byemail", "newusers/newusers", + "managewiki/settings", "managewiki/delete", "managewiki/lock", "managewiki/unlock", + "managewiki/namespaces", "managewiki/namespaces-delete", "managewiki/rights", "managewiki/undelete"} @dataclass From f5d1a35619deaceb0b297a148d73e3bb873c34ef Mon Sep 17 00:00:00 2001 From: Markus-Rost Date: Fri, 23 Oct 2020 16:00:56 +0200 Subject: [PATCH 11/11] Don't crash when Fandom has no pageID assigned to comment yet --- src/formatters/discussions.py | 4 ++-- src/wiki.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/formatters/discussions.py b/src/formatters/discussions.py index c36205d..d5ed67b 100644 --- a/src/formatters/discussions.py +++ b/src/formatters/discussions.py @@ -47,7 +47,7 @@ async def feeds_compact_formatter(post_type, post, message_target, wiki, article message = "📩 "+_("[{author}]({author_url}) created a [reply](<{url}wiki/Message_Wall:{user_wall}?threadId={threadId}#{replyId}>) to [{title}](<{url}wiki/Message_Wall:{user_wall}?threadId={threadId}>) on [{user}'s Message Wall](<{url}wiki/Message_Wall:{user_wall}>)").format(author=author, author_url=author_url, url=wiki, title=post["_embedded"]["thread"][0]["title"], user=user_wall, user_wall=quote_plus(user_wall.replace(" ", "_")), threadId=post["threadId"], replyId=post["id"]) elif post_type == "ARTICLE_COMMENT": if article_page is None: - article_page = {"title": _("unknown"), "fullUrl": "{wiki}wiki/{article}".format(wiki=wiki, article=_("unknown").replace(" ", "_"))} # No page known + article_page = {"title": _("unknown"), "fullUrl": wiki} # No page known if not post["isReply"]: message = "🗒️ "+_("[{author}]({author_url}) created a [comment](<{url}?commentId={commentId}>) on [{article}](<{url}>)").format(author=author, author_url=author_url, url=article_page["fullUrl"], article=article_page["title"], commentId=post["threadId"]) else: @@ -137,7 +137,7 @@ async def feeds_embed_formatter(post_type, post, message_target, wiki, article_p embed["title"] = _("Replied to \"{title}\" on {user}'s Message Wall").format(title=post["_embedded"]["thread"][0]["title"], user=user_wall) elif post_type == "ARTICLE_COMMENT": if article_page is None: - article_page = {"title": _("unknown"), "fullUrl": "{wiki}wiki/{article}".format(wiki=wiki, article=_("unknown").replace(" ", "_"))} # No page known + article_page = {"title": _("unknown"), "fullUrl": wiki} # No page known if not post["isReply"]: embed.event_type = "discussion/comment/post" embed["url"] = "{url}?commentId={commentId}".format(url=article_page["fullUrl"], commentId=post["threadId"]) diff --git a/src/wiki.py b/src/wiki.py index ee3b92d..1e5c7c7 100644 --- a/src/wiki.py +++ b/src/wiki.py @@ -245,6 +245,7 @@ async def essential_feeds(change: dict, comment_pages: dict, db_wiki: sqlite3.Ro identification_string = change["_embedded"]["thread"][0]["containerType"] comment_page = None if identification_string == "ARTICLE_COMMENT" and comment_pages is not None: - comment_page = comment_pages[change["forumId"]] - comment_page["fullUrl"] = "/".join(db_wiki["wiki"].split("/", 3)[:3]) + comment_page["relativeUrl"] + comment_page = comment_pages.get(change["forumId"], None) + if comment_page is not None: + comment_page["fullUrl"] = "/".join(db_wiki["wiki"].split("/", 3)[:3]) + comment_page["relativeUrl"] await appearance_mode(identification_string, change, target, db_wiki["wiki"], article_page=comment_page)