aa-rss-to-discord 2.3.32.3.3__py3-none-any.whl → 2.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aa_rss_to_discord/__init__.py +3 -2
- aa_rss_to_discord/apps.py +5 -2
- aa_rss_to_discord/constants.py +1 -1
- aa_rss_to_discord/locale/cs_CZ/LC_MESSAGES/django.po +2 -2
- aa_rss_to_discord/locale/de/LC_MESSAGES/django.po +2 -2
- aa_rss_to_discord/locale/django.pot +3 -3
- aa_rss_to_discord/locale/es/LC_MESSAGES/django.mo +0 -0
- aa_rss_to_discord/locale/es/LC_MESSAGES/django.po +8 -6
- aa_rss_to_discord/locale/fr_FR/LC_MESSAGES/django.po +2 -2
- aa_rss_to_discord/locale/it_IT/LC_MESSAGES/django.po +2 -2
- aa_rss_to_discord/locale/ja/LC_MESSAGES/django.po +2 -2
- aa_rss_to_discord/locale/ko_KR/LC_MESSAGES/django.po +2 -2
- aa_rss_to_discord/locale/nl_NL/LC_MESSAGES/django.po +2 -2
- aa_rss_to_discord/locale/pl_PL/LC_MESSAGES/django.po +2 -2
- aa_rss_to_discord/locale/ru/LC_MESSAGES/django.po +2 -2
- aa_rss_to_discord/locale/sk/LC_MESSAGES/django.po +2 -2
- aa_rss_to_discord/locale/uk/LC_MESSAGES/django.mo +0 -0
- aa_rss_to_discord/locale/uk/LC_MESSAGES/django.po +9 -8
- aa_rss_to_discord/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- aa_rss_to_discord/locale/zh_Hans/LC_MESSAGES/django.po +12 -13
- aa_rss_to_discord/managers.py +1 -1
- aa_rss_to_discord/providers.py +43 -0
- aa_rss_to_discord/tasks.py +94 -147
- aa_rss_to_discord/tests/__init__.py +41 -0
- aa_rss_to_discord/tests/test_auth_hooks.py +49 -0
- aa_rss_to_discord/tests/test_managers.py +32 -0
- aa_rss_to_discord/tests/test_models.py +165 -0
- aa_rss_to_discord/tests/test_providers.py +99 -0
- aa_rss_to_discord/tests/test_tasks.py +236 -0
- {aa_rss_to_discord-2.3.32.3.3.dist-info → aa_rss_to_discord-2.5.0.dist-info}/METADATA +11 -9
- aa_rss_to_discord-2.5.0.dist-info/RECORD +51 -0
- {aa_rss_to_discord-2.3.32.3.3.dist-info → aa_rss_to_discord-2.5.0.dist-info}/WHEEL +1 -1
- aa_rss_to_discord-2.3.32.3.3.dist-info/RECORD +0 -44
- {aa_rss_to_discord-2.3.32.3.3.dist-info → aa_rss_to_discord-2.5.0.dist-info}/licenses/LICENSE +0 -0
aa_rss_to_discord/__init__.py
CHANGED
aa_rss_to_discord/apps.py
CHANGED
|
@@ -4,9 +4,10 @@ app config
|
|
|
4
4
|
|
|
5
5
|
# Django
|
|
6
6
|
from django.apps import AppConfig
|
|
7
|
+
from django.utils.text import format_lazy
|
|
7
8
|
|
|
8
9
|
# AA RSS to Discord
|
|
9
|
-
from aa_rss_to_discord import __version__
|
|
10
|
+
from aa_rss_to_discord import __title_translated__, __version__
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
class AaRssToDiscordConfig(AppConfig):
|
|
@@ -16,4 +17,6 @@ class AaRssToDiscordConfig(AppConfig):
|
|
|
16
17
|
|
|
17
18
|
name = "aa_rss_to_discord"
|
|
18
19
|
label = "aa_rss_to_discord"
|
|
19
|
-
verbose_name =
|
|
20
|
+
verbose_name = format_lazy(
|
|
21
|
+
"{app_title} v{version}", app_title=__title_translated__, version=__version__
|
|
22
|
+
)
|
aa_rss_to_discord/constants.py
CHANGED
|
@@ -9,7 +9,7 @@ from feedparser import USER_AGENT as feedparser_user_agent
|
|
|
9
9
|
from aa_rss_to_discord import __version__
|
|
10
10
|
|
|
11
11
|
APP_NAME = "aa-rss-to-discord"
|
|
12
|
-
APP_NAME_USERAGENT = "
|
|
12
|
+
APP_NAME_USERAGENT = "AaRssToDiscord"
|
|
13
13
|
GITHUB_URL = f"https://github.com/ppfeufer/{APP_NAME}"
|
|
14
14
|
USER_AGENT = (
|
|
15
15
|
f"{APP_NAME_USERAGENT}/{__version__} (+{GITHUB_URL}) via {feedparser_user_agent}"
|
|
@@ -7,7 +7,7 @@ msgid ""
|
|
|
7
7
|
msgstr ""
|
|
8
8
|
"Project-Id-Version: AA RSS to Discord 2.2.0\n"
|
|
9
9
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-rss-to-discord/issues\n"
|
|
10
|
-
"POT-Creation-Date:
|
|
10
|
+
"POT-Creation-Date: 2026-01-05 22:28+0100\n"
|
|
11
11
|
"PO-Revision-Date: 2024-05-10 14:10+0000\n"
|
|
12
12
|
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
|
13
13
|
"Language-Team: Czech <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-rss-to-discord/cs/>\n"
|
|
@@ -18,7 +18,7 @@ msgstr ""
|
|
|
18
18
|
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
|
|
19
19
|
"X-Generator: Weblate 5.5.3\n"
|
|
20
20
|
|
|
21
|
-
#: aa_rss_to_discord/__init__.py:
|
|
21
|
+
#: aa_rss_to_discord/__init__.py:10
|
|
22
22
|
msgid "RSS to Discord"
|
|
23
23
|
msgstr ""
|
|
24
24
|
|
|
@@ -6,7 +6,7 @@ msgid ""
|
|
|
6
6
|
msgstr ""
|
|
7
7
|
"Project-Id-Version: AA RSS to Discord 2.2.0\n"
|
|
8
8
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-rss-to-discord/issues\n"
|
|
9
|
-
"POT-Creation-Date:
|
|
9
|
+
"POT-Creation-Date: 2026-01-05 22:28+0100\n"
|
|
10
10
|
"PO-Revision-Date: 2025-04-25 14:24+0000\n"
|
|
11
11
|
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
|
|
12
12
|
"Language-Team: German <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-rss-to-discord/de/>\n"
|
|
@@ -17,7 +17,7 @@ msgstr ""
|
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
|
18
18
|
"X-Generator: Weblate 5.11\n"
|
|
19
19
|
|
|
20
|
-
#: aa_rss_to_discord/__init__.py:
|
|
20
|
+
#: aa_rss_to_discord/__init__.py:10
|
|
21
21
|
msgid "RSS to Discord"
|
|
22
22
|
msgstr "RSS zu Discord"
|
|
23
23
|
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version: AA RSS to Discord 2.
|
|
9
|
+
"Project-Id-Version: AA RSS to Discord 2.5.0\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-rss-to-discord/issues\n"
|
|
11
|
-
"POT-Creation-Date:
|
|
11
|
+
"POT-Creation-Date: 2026-01-05 22:28+0100\n"
|
|
12
12
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
@@ -17,7 +17,7 @@ msgstr ""
|
|
|
17
17
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
18
|
"Content-Transfer-Encoding: 8bit\n"
|
|
19
19
|
|
|
20
|
-
#: aa_rss_to_discord/__init__.py:
|
|
20
|
+
#: aa_rss_to_discord/__init__.py:10
|
|
21
21
|
msgid "RSS to Discord"
|
|
22
22
|
msgstr ""
|
|
23
23
|
|
|
Binary file
|
|
@@ -2,24 +2,26 @@
|
|
|
2
2
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
|
3
3
|
# This file is distributed under the same license as the PACKAGE package.
|
|
4
4
|
# Zigor Fernandez Moreno <sietehierros@gmail.com>, 2023, 2024.
|
|
5
|
+
# Ivan <isangar2000@gmail.com>, 2025.
|
|
5
6
|
msgid ""
|
|
6
7
|
msgstr ""
|
|
7
8
|
"Project-Id-Version: AA RSS to Discord 2.2.0\n"
|
|
8
9
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-rss-to-discord/issues\n"
|
|
9
|
-
"POT-Creation-Date:
|
|
10
|
-
"PO-Revision-Date:
|
|
11
|
-
"Last-Translator:
|
|
10
|
+
"POT-Creation-Date: 2026-01-05 22:28+0100\n"
|
|
11
|
+
"PO-Revision-Date: 2025-12-18 23:47+0000\n"
|
|
12
|
+
"Last-Translator: Ivan <isangar2000@gmail.com>\n"
|
|
12
13
|
"Language-Team: Spanish <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-rss-to-discord/es/>\n"
|
|
13
14
|
"Language: es\n"
|
|
14
15
|
"MIME-Version: 1.0\n"
|
|
15
16
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
16
17
|
"Content-Transfer-Encoding: 8bit\n"
|
|
17
18
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
|
18
|
-
"X-Generator: Weblate 5.
|
|
19
|
+
"X-Generator: Weblate 5.14.3\n"
|
|
19
20
|
|
|
20
|
-
#: aa_rss_to_discord/__init__.py:
|
|
21
|
+
#: aa_rss_to_discord/__init__.py:10
|
|
22
|
+
#, fuzzy
|
|
21
23
|
msgid "RSS to Discord"
|
|
22
|
-
msgstr ""
|
|
24
|
+
msgstr "RSS ir discord"
|
|
23
25
|
|
|
24
26
|
#: aa_rss_to_discord/models.py:44
|
|
25
27
|
msgid "RSS Feed"
|
|
@@ -9,7 +9,7 @@ msgid ""
|
|
|
9
9
|
msgstr ""
|
|
10
10
|
"Project-Id-Version: AA RSS to Discord 2.2.0\n"
|
|
11
11
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-rss-to-discord/issues\n"
|
|
12
|
-
"POT-Creation-Date:
|
|
12
|
+
"POT-Creation-Date: 2026-01-05 22:28+0100\n"
|
|
13
13
|
"PO-Revision-Date: 2025-08-03 04:24+0000\n"
|
|
14
14
|
"Last-Translator: The “Devcutter” Guy <mick162534@gmail.com>\n"
|
|
15
15
|
"Language-Team: French <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-rss-to-discord/fr/>\n"
|
|
@@ -20,7 +20,7 @@ msgstr ""
|
|
|
20
20
|
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
|
21
21
|
"X-Generator: Weblate 5.12.2\n"
|
|
22
22
|
|
|
23
|
-
#: aa_rss_to_discord/__init__.py:
|
|
23
|
+
#: aa_rss_to_discord/__init__.py:10
|
|
24
24
|
msgid "RSS to Discord"
|
|
25
25
|
msgstr "RSS vers Discord"
|
|
26
26
|
|
|
@@ -7,7 +7,7 @@ msgid ""
|
|
|
7
7
|
msgstr ""
|
|
8
8
|
"Project-Id-Version: AA RSS to Discord 2.2.0\n"
|
|
9
9
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-rss-to-discord/issues\n"
|
|
10
|
-
"POT-Creation-Date:
|
|
10
|
+
"POT-Creation-Date: 2026-01-05 22:28+0100\n"
|
|
11
11
|
"PO-Revision-Date: 2024-05-10 14:10+0000\n"
|
|
12
12
|
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
|
13
13
|
"Language-Team: Italian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-rss-to-discord/it/>\n"
|
|
@@ -18,7 +18,7 @@ msgstr ""
|
|
|
18
18
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
|
19
19
|
"X-Generator: Weblate 5.5.3\n"
|
|
20
20
|
|
|
21
|
-
#: aa_rss_to_discord/__init__.py:
|
|
21
|
+
#: aa_rss_to_discord/__init__.py:10
|
|
22
22
|
msgid "RSS to Discord"
|
|
23
23
|
msgstr ""
|
|
24
24
|
|
|
@@ -6,7 +6,7 @@ msgid ""
|
|
|
6
6
|
msgstr ""
|
|
7
7
|
"Project-Id-Version: AA RSS to Discord 2.2.0\n"
|
|
8
8
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-rss-to-discord/issues\n"
|
|
9
|
-
"POT-Creation-Date:
|
|
9
|
+
"POT-Creation-Date: 2026-01-05 22:28+0100\n"
|
|
10
10
|
"PO-Revision-Date: 2024-08-05 10:10+0000\n"
|
|
11
11
|
"Last-Translator: Anata_no_Usiro <yt23542354m@gmail.com>\n"
|
|
12
12
|
"Language-Team: Japanese <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-rss-to-discord/ja/>\n"
|
|
@@ -17,7 +17,7 @@ msgstr ""
|
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
18
|
"X-Generator: Weblate 5.6.2\n"
|
|
19
19
|
|
|
20
|
-
#: aa_rss_to_discord/__init__.py:
|
|
20
|
+
#: aa_rss_to_discord/__init__.py:10
|
|
21
21
|
msgid "RSS to Discord"
|
|
22
22
|
msgstr "RSS から Discord へ"
|
|
23
23
|
|
|
@@ -7,7 +7,7 @@ msgid ""
|
|
|
7
7
|
msgstr ""
|
|
8
8
|
"Project-Id-Version: AA RSS to Discord 2.2.0\n"
|
|
9
9
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-rss-to-discord/issues\n"
|
|
10
|
-
"POT-Creation-Date:
|
|
10
|
+
"POT-Creation-Date: 2026-01-05 22:28+0100\n"
|
|
11
11
|
"PO-Revision-Date: 2024-05-10 14:10+0000\n"
|
|
12
12
|
"Last-Translator: Hue Radient <seataoji@gmail.com>\n"
|
|
13
13
|
"Language-Team: Korean <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-rss-to-discord/ko/>\n"
|
|
@@ -18,7 +18,7 @@ msgstr ""
|
|
|
18
18
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
19
19
|
"X-Generator: Weblate 5.5.3\n"
|
|
20
20
|
|
|
21
|
-
#: aa_rss_to_discord/__init__.py:
|
|
21
|
+
#: aa_rss_to_discord/__init__.py:10
|
|
22
22
|
msgid "RSS to Discord"
|
|
23
23
|
msgstr "디스코드로 RSS피드보내기"
|
|
24
24
|
|
|
@@ -7,7 +7,7 @@ msgid ""
|
|
|
7
7
|
msgstr ""
|
|
8
8
|
"Project-Id-Version: AA RSS to Discord 2.2.0\n"
|
|
9
9
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-rss-to-discord/issues\n"
|
|
10
|
-
"POT-Creation-Date:
|
|
10
|
+
"POT-Creation-Date: 2026-01-05 22:28+0100\n"
|
|
11
11
|
"PO-Revision-Date: 2024-05-10 14:10+0000\n"
|
|
12
12
|
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
|
13
13
|
"Language-Team: Dutch <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-rss-to-discord/nl/>\n"
|
|
@@ -18,7 +18,7 @@ msgstr ""
|
|
|
18
18
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
|
19
19
|
"X-Generator: Weblate 5.5.3\n"
|
|
20
20
|
|
|
21
|
-
#: aa_rss_to_discord/__init__.py:
|
|
21
|
+
#: aa_rss_to_discord/__init__.py:10
|
|
22
22
|
msgid "RSS to Discord"
|
|
23
23
|
msgstr ""
|
|
24
24
|
|
|
@@ -7,7 +7,7 @@ msgid ""
|
|
|
7
7
|
msgstr ""
|
|
8
8
|
"Project-Id-Version: AA RSS to Discord 2.2.0\n"
|
|
9
9
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-rss-to-discord/issues\n"
|
|
10
|
-
"POT-Creation-Date:
|
|
10
|
+
"POT-Creation-Date: 2026-01-05 22:28+0100\n"
|
|
11
11
|
"PO-Revision-Date: 2024-05-10 14:10+0000\n"
|
|
12
12
|
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
|
13
13
|
"Language-Team: Polish <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-rss-to-discord/pl/>\n"
|
|
@@ -18,7 +18,7 @@ msgstr ""
|
|
|
18
18
|
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
|
19
19
|
"X-Generator: Weblate 5.5.3\n"
|
|
20
20
|
|
|
21
|
-
#: aa_rss_to_discord/__init__.py:
|
|
21
|
+
#: aa_rss_to_discord/__init__.py:10
|
|
22
22
|
msgid "RSS to Discord"
|
|
23
23
|
msgstr ""
|
|
24
24
|
|
|
@@ -7,7 +7,7 @@ msgid ""
|
|
|
7
7
|
msgstr ""
|
|
8
8
|
"Project-Id-Version: AA RSS to Discord 2.2.0\n"
|
|
9
9
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-rss-to-discord/issues\n"
|
|
10
|
-
"POT-Creation-Date:
|
|
10
|
+
"POT-Creation-Date: 2026-01-05 22:28+0100\n"
|
|
11
11
|
"PO-Revision-Date: 2024-05-10 14:10+0000\n"
|
|
12
12
|
"Last-Translator: Dromiel <dimhry@yandex.ru>\n"
|
|
13
13
|
"Language-Team: Russian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-rss-to-discord/ru/>\n"
|
|
@@ -18,7 +18,7 @@ msgstr ""
|
|
|
18
18
|
"Plural-Forms: nplurals=4; plural=n==1 ? 3 : (n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
|
19
19
|
"X-Generator: Weblate 5.5.3\n"
|
|
20
20
|
|
|
21
|
-
#: aa_rss_to_discord/__init__.py:
|
|
21
|
+
#: aa_rss_to_discord/__init__.py:10
|
|
22
22
|
msgid "RSS to Discord"
|
|
23
23
|
msgstr "RSS к Дискорду"
|
|
24
24
|
|
|
@@ -7,7 +7,7 @@ msgid ""
|
|
|
7
7
|
msgstr ""
|
|
8
8
|
"Project-Id-Version: AA RSS to Discord 2.2.0\n"
|
|
9
9
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-rss-to-discord/issues\n"
|
|
10
|
-
"POT-Creation-Date:
|
|
10
|
+
"POT-Creation-Date: 2026-01-05 22:28+0100\n"
|
|
11
11
|
"PO-Revision-Date: 2024-05-10 14:10+0000\n"
|
|
12
12
|
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
|
13
13
|
"Language-Team: Slovak <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-rss-to-discord/sk/>\n"
|
|
@@ -18,7 +18,7 @@ msgstr ""
|
|
|
18
18
|
"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n"
|
|
19
19
|
"X-Generator: Weblate 5.5.3\n"
|
|
20
20
|
|
|
21
|
-
#: aa_rss_to_discord/__init__.py:
|
|
21
|
+
#: aa_rss_to_discord/__init__.py:10
|
|
22
22
|
msgid "RSS to Discord"
|
|
23
23
|
msgstr ""
|
|
24
24
|
|
|
Binary file
|
|
@@ -3,32 +3,33 @@
|
|
|
3
3
|
# This file is distributed under the same license as the PACKAGE package.
|
|
4
4
|
# Peter Pfeufer <info@ppfeufer.de>, 2023, 2024.
|
|
5
5
|
# s0k0l -_- <salarysalo@gmail.com>, 2025.
|
|
6
|
+
# Варрус <horowiserus@gmail.com>, 2025.
|
|
6
7
|
msgid ""
|
|
7
8
|
msgstr ""
|
|
8
9
|
"Project-Id-Version: AA RSS to Discord 2.2.0\n"
|
|
9
10
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-rss-to-discord/issues\n"
|
|
10
|
-
"POT-Creation-Date:
|
|
11
|
-
"PO-Revision-Date: 2025-
|
|
12
|
-
"Last-Translator:
|
|
11
|
+
"POT-Creation-Date: 2026-01-05 22:28+0100\n"
|
|
12
|
+
"PO-Revision-Date: 2025-12-15 14:17+0000\n"
|
|
13
|
+
"Last-Translator: Варрус <horowiserus@gmail.com>\n"
|
|
13
14
|
"Language-Team: Ukrainian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-rss-to-discord/uk/>\n"
|
|
14
15
|
"Language: uk\n"
|
|
15
16
|
"MIME-Version: 1.0\n"
|
|
16
17
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
17
18
|
"Content-Transfer-Encoding: 8bit\n"
|
|
18
19
|
"Plural-Forms: nplurals=4; plural=n==1 ? 3 : (n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
|
19
|
-
"X-Generator: Weblate 5.
|
|
20
|
+
"X-Generator: Weblate 5.14.3\n"
|
|
20
21
|
|
|
21
|
-
#: aa_rss_to_discord/__init__.py:
|
|
22
|
+
#: aa_rss_to_discord/__init__.py:10
|
|
22
23
|
msgid "RSS to Discord"
|
|
23
24
|
msgstr "RSS до Діскорду"
|
|
24
25
|
|
|
25
26
|
#: aa_rss_to_discord/models.py:44
|
|
26
27
|
msgid "RSS Feed"
|
|
27
|
-
msgstr "RSS
|
|
28
|
+
msgstr "RSS-стрічка"
|
|
28
29
|
|
|
29
30
|
#: aa_rss_to_discord/models.py:45
|
|
30
31
|
msgid "RSS Feeds"
|
|
31
|
-
msgstr "RSS
|
|
32
|
+
msgstr "RSS-фіди"
|
|
32
33
|
|
|
33
34
|
#: aa_rss_to_discord/models.py:72
|
|
34
35
|
msgid "Last Item"
|
|
@@ -36,4 +37,4 @@ msgstr "Останній елемент"
|
|
|
36
37
|
|
|
37
38
|
#: aa_rss_to_discord/models.py:73
|
|
38
39
|
msgid "Last Items"
|
|
39
|
-
msgstr "Останні
|
|
40
|
+
msgstr "Останні Елементи"
|
|
Binary file
|
|
@@ -1,39 +1,38 @@
|
|
|
1
1
|
# SOME DESCRIPTIVE TITLE.
|
|
2
2
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
|
3
3
|
# This file is distributed under the same license as the PACKAGE package.
|
|
4
|
-
#
|
|
5
|
-
#
|
|
4
|
+
# AKA Patrick <hsc844766246@gmail.com>, 2025.
|
|
6
5
|
msgid ""
|
|
7
6
|
msgstr ""
|
|
8
7
|
"Project-Id-Version: AA RSS to Discord 2.2.0\n"
|
|
9
8
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-rss-to-discord/issues\n"
|
|
10
|
-
"POT-Creation-Date:
|
|
11
|
-
"PO-Revision-Date:
|
|
12
|
-
"Last-Translator:
|
|
13
|
-
"Language-Team: Chinese (Simplified) <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-rss-to-discord/zh_Hans/>\n"
|
|
9
|
+
"POT-Creation-Date: 2026-01-05 22:28+0100\n"
|
|
10
|
+
"PO-Revision-Date: 2025-12-08 09:17+0000\n"
|
|
11
|
+
"Last-Translator: AKA Patrick <hsc844766246@gmail.com>\n"
|
|
12
|
+
"Language-Team: Chinese (Simplified Han script) <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-rss-to-discord/zh_Hans/>\n"
|
|
14
13
|
"Language: zh_Hans\n"
|
|
15
14
|
"MIME-Version: 1.0\n"
|
|
16
15
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
17
16
|
"Content-Transfer-Encoding: 8bit\n"
|
|
18
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
19
|
-
"X-Generator: Weblate 5.
|
|
18
|
+
"X-Generator: Weblate 5.14.3\n"
|
|
20
19
|
|
|
21
|
-
#: aa_rss_to_discord/__init__.py:
|
|
20
|
+
#: aa_rss_to_discord/__init__.py:10
|
|
22
21
|
msgid "RSS to Discord"
|
|
23
|
-
msgstr ""
|
|
22
|
+
msgstr "链接Discord的Rss"
|
|
24
23
|
|
|
25
24
|
#: aa_rss_to_discord/models.py:44
|
|
26
25
|
msgid "RSS Feed"
|
|
27
|
-
msgstr ""
|
|
26
|
+
msgstr "RSS源"
|
|
28
27
|
|
|
29
28
|
#: aa_rss_to_discord/models.py:45
|
|
30
29
|
msgid "RSS Feeds"
|
|
31
|
-
msgstr ""
|
|
30
|
+
msgstr "RSS源"
|
|
32
31
|
|
|
33
32
|
#: aa_rss_to_discord/models.py:72
|
|
34
33
|
msgid "Last Item"
|
|
35
|
-
msgstr ""
|
|
34
|
+
msgstr "最后一项"
|
|
36
35
|
|
|
37
36
|
#: aa_rss_to_discord/models.py:73
|
|
38
37
|
msgid "Last Items"
|
|
39
|
-
msgstr ""
|
|
38
|
+
msgstr "最后几项"
|
aa_rss_to_discord/managers.py
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Providers for the AA RSS to Discord app.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
# Standard Library
|
|
6
|
+
import logging
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AppLogger(logging.LoggerAdapter):
|
|
10
|
+
"""
|
|
11
|
+
Custom logger adapter that adds a prefix to log messages.
|
|
12
|
+
|
|
13
|
+
Taken from the `allianceauth-app-utils` package.
|
|
14
|
+
Credits to: Erik Kalkoken
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
def __init__(self, my_logger, prefix):
|
|
18
|
+
"""
|
|
19
|
+
Initializes the AppLogger with a logger and a prefix.
|
|
20
|
+
|
|
21
|
+
:param my_logger: Logger instance
|
|
22
|
+
:type my_logger: logging.Logger
|
|
23
|
+
:param prefix: Prefix string to add to log messages
|
|
24
|
+
:type prefix: str
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
super().__init__(my_logger, {})
|
|
28
|
+
|
|
29
|
+
self.prefix = prefix
|
|
30
|
+
|
|
31
|
+
def process(self, msg, kwargs):
|
|
32
|
+
"""
|
|
33
|
+
Prepares the log message by adding the prefix.
|
|
34
|
+
|
|
35
|
+
:param msg: Log message
|
|
36
|
+
:type msg: str
|
|
37
|
+
:param kwargs: Additional keyword arguments
|
|
38
|
+
:type kwargs: dict
|
|
39
|
+
:return: Prefixed log message and kwargs
|
|
40
|
+
:rtype: tuple
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
return f"[{self.prefix}] {msg}", kwargs
|