Use lazy_pgettext for condition Match label (#4480)
Build and push containers / metadata (push) Waiting to run
Build and push containers / build-push-containers (push) Waiting to run
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Waiting to run
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Test the built package works basically. (push) Blocked by required conditions
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Blocked by required conditions
ChangeDetection.io App Test / lint-code (push) Waiting to run
ChangeDetection.io App Test / lint-translations (push) Waiting to run
ChangeDetection.io App Test / lint-template-i18n (push) Waiting to run
ChangeDetection.io App Test / test-application-3-11 (push) Blocked by required conditions
ChangeDetection.io App Test / test-application-3-12 (push) Blocked by required conditions
ChangeDetection.io App Test / test-application-3-13 (push) Blocked by required conditions
ChangeDetection.io App Test / test-application-3-14 (push) Blocked by required conditions

This commit is contained in:
skkzsh
2026-09-25 11:31:00 +02:00
committed by GitHub
parent 6704fdb29e
commit 61f03cdc69
36 changed files with 43 additions and 6 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
[python: **.py]
keywords = _ _l gettext pgettext:1c,2
keywords = _ _l gettext pgettext:1c,2 lazy_pgettext:1c,2
[jinja2: **/templates/**.html]
encoding = utf-8
keywords = _ _l gettext pgettext:1c,2
keywords = _ _l gettext pgettext:1c,2 lazy_pgettext:1c,2
+3 -2
View File
@@ -2,7 +2,7 @@ import os
import re
from loguru import logger
from wtforms.widgets.core import TimeInput
from flask_babel import lazy_gettext as _l, gettext
from flask_babel import gettext, lazy_gettext as _l, lazy_pgettext
from changedetectionio.blueprint.menu_modes import MENU_SIDEBAR_ACTIONMODES, MENU_SIDEBAR_ACTIONMODES_DEFAULT
from changedetectionio.blueprint.rss import RSS_FORMAT_TYPES, RSS_TEMPLATE_TYPE_OPTIONS, RSS_TEMPLATE_HTML_DEFAULT
@@ -1015,7 +1015,8 @@ class processor_text_json_diff_form(commonSettingsForm):
notification_muted = TernaryNoneBooleanField(_l('Notifications'), default=None, yes_text=_l("Muted"), no_text=_l("On"))
notification_screenshot = BooleanField(_l('Attach screenshot to notification (where possible)'), default=False)
conditions_match_logic = RadioField(_l('Match'), choices=[('ALL', _l('Match all of the following')),('ANY', _l('Match any of the following'))], default='ALL')
# TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
conditions_match_logic = RadioField(lazy_pgettext('condition', 'Match'), choices=[('ALL', _l('Match all of the following')),('ANY', _l('Match any of the following'))], default='ALL')
conditions = FieldList(FormField(ConditionFormRow), min_entries=1) # Add rule logic here
use_page_title_in_list = TernaryNoneBooleanField(_l('Use page <title> in list'), default=None)
@@ -3463,7 +3463,9 @@ msgstr "Ztlumit"
msgid "Attach screenshot to notification (where possible)"
msgstr "Připojit snímek obrazovky k oznámení (pokud je to možné)"
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr "Shoda"
@@ -3513,7 +3513,9 @@ msgstr "Stumm"
msgid "Attach screenshot to notification (where possible)"
msgstr "Screenshot an Benachrichtigung anhängen (sofern möglich)"
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr "Übereinstimmung"
@@ -3455,7 +3455,9 @@ msgstr ""
msgid "Attach screenshot to notification (where possible)"
msgstr ""
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr ""
@@ -3455,7 +3455,9 @@ msgstr ""
msgid "Attach screenshot to notification (where possible)"
msgstr ""
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr ""
@@ -3528,7 +3528,9 @@ msgstr "Silenciado"
msgid "Attach screenshot to notification (where possible)"
msgstr "Adjunte captura de pantalla a la notificación (cuando sea posible)"
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr "Coincidencia"
@@ -3468,7 +3468,9 @@ msgstr "Muet"
msgid "Attach screenshot to notification (where possible)"
msgstr "Joindre une capture d'écran à la notification (si possible)"
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr "Correspondance"
@@ -3568,7 +3568,9 @@ msgstr "Dibisukan"
msgid "Attach screenshot to notification (where possible)"
msgstr "Lampirkan tangkapan layar ke notifikasi (jika memungkinkan)"
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr "Pencocokan"
@@ -3457,7 +3457,9 @@ msgstr "Disattivato"
msgid "Attach screenshot to notification (where possible)"
msgstr "Allega screenshot alla notifica (dove possibile)"
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr "Corrisponde"
@@ -3474,7 +3474,9 @@ msgstr "ミュート済み"
msgid "Attach screenshot to notification (where possible)"
msgstr "通知にスクリーンショットを添付(可能な場合)"
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr "一致条件"
@@ -3465,7 +3465,9 @@ msgstr "음소거됨"
msgid "Attach screenshot to notification (where possible)"
msgstr "알림에 스크린샷 첨부(가능한 경우)"
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr "일치 방식"
+3 -1
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: changedetection.io 0.60.7\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2026-09-20 19:44+0200\n"
"POT-Creation-Date: 2026-09-23 17:27+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -3454,7 +3454,9 @@ msgstr ""
msgid "Attach screenshot to notification (where possible)"
msgstr ""
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr ""
@@ -3614,7 +3614,9 @@ msgstr "Wyciszone"
msgid "Attach screenshot to notification (where possible)"
msgstr "Dołącz zrzut ekranu do zgłoszenia (jeśli to możliwe)"
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr "Mecz"
@@ -3505,7 +3505,9 @@ msgstr "Silenciado"
msgid "Attach screenshot to notification (where possible)"
msgstr "Anexar screenshot à notificação (quando possível)"
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr "Corresponder"
@@ -3573,7 +3573,9 @@ msgstr "Без звука"
msgid "Attach screenshot to notification (where possible)"
msgstr "Прикрепите скриншот к уведомлению (где это возможно)"
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr "Соответствовать"
@@ -3508,7 +3508,9 @@ msgstr "Sessize alındı"
msgid "Attach screenshot to notification (where possible)"
msgstr "Ekran görüntüsünü bildirime ekle (mümkün olan yerlerde)"
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr "Eşleştir"
@@ -3487,7 +3487,9 @@ msgstr "Заглушено"
msgid "Attach screenshot to notification (where possible)"
msgstr "Прикріпити скріншот до сповіщення (де можливо)"
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr "Збіг"
@@ -3461,7 +3461,9 @@ msgstr "静音"
msgid "Attach screenshot to notification (where possible)"
msgstr "(如可用)在通知中附加截图"
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr "匹配"
@@ -3466,7 +3466,9 @@ msgstr "已靜音"
msgid "Attach screenshot to notification (where possible)"
msgstr "將截圖附加到通知中(如果支援)"
#. TRANSLATORS: Label for the setting combining condition rules with AND/OR. Noun; not the verb 'to match'.
#: changedetectionio/forms.py
msgctxt "condition"
msgid "Match"
msgstr "符合"
+1 -1
View File
@@ -6,7 +6,7 @@
mapping_file = babel.cfg
output_file = changedetectionio/translations/messages.pot
input_paths = changedetectionio
keywords = _ _l gettext pgettext:1c,2
keywords = _ _l gettext pgettext:1c,2 lazy_pgettext:1c,2
add_comments = TRANSLATORS:,dennis-ignore:
# Options to reduce unnecessary changes in .pot files
sort_by_file = true