From 8a66da3d6deb2cd069851333b8695dc96eda80a6 Mon Sep 17 00:00:00 2001 From: skkzsh Date: Tue, 21 Apr 2026 19:00:15 +0900 Subject: [PATCH] UI - Use pgettext for diff page From/To labels to prevent context collisions (#4073) --- babel.cfg | 4 ++-- .../blueprint/ui/templates/diff.html | 6 ++++-- .../translations/cs/LC_MESSAGES/messages.mo | Bin 41247 -> 41273 bytes .../translations/cs/LC_MESSAGES/messages.po | 12 +++++++++++- .../translations/de/LC_MESSAGES/messages.mo | Bin 49345 -> 49371 bytes .../translations/de/LC_MESSAGES/messages.po | 12 +++++++++++- .../en_GB/LC_MESSAGES/messages.mo | Bin 493 -> 493 bytes .../en_GB/LC_MESSAGES/messages.po | 12 +++++++++++- .../en_US/LC_MESSAGES/messages.mo | Bin 807 -> 807 bytes .../en_US/LC_MESSAGES/messages.po | 12 +++++++++++- .../translations/es/LC_MESSAGES/messages.mo | Bin 72574 -> 72600 bytes .../translations/es/LC_MESSAGES/messages.po | 12 +++++++++++- .../translations/fr/LC_MESSAGES/messages.mo | Bin 37658 -> 37684 bytes .../translations/fr/LC_MESSAGES/messages.po | 12 +++++++++++- .../translations/it/LC_MESSAGES/messages.mo | Bin 22126 -> 22126 bytes .../translations/it/LC_MESSAGES/messages.po | 12 +++++++++++- .../translations/ja/LC_MESSAGES/messages.mo | Bin 88169 -> 88195 bytes .../translations/ja/LC_MESSAGES/messages.po | 12 +++++++++++- .../translations/ko/LC_MESSAGES/messages.mo | Bin 33188 -> 33214 bytes .../translations/ko/LC_MESSAGES/messages.po | 12 +++++++++++- changedetectionio/translations/messages.pot | 8 ++++++-- .../pt_BR/LC_MESSAGES/messages.mo | Bin 69939 -> 69965 bytes .../pt_BR/LC_MESSAGES/messages.po | 12 +++++++++++- .../translations/tr/LC_MESSAGES/messages.mo | Bin 71729 -> 71755 bytes .../translations/tr/LC_MESSAGES/messages.po | 12 +++++++++++- .../translations/uk/LC_MESSAGES/messages.mo | Bin 85463 -> 85489 bytes .../translations/uk/LC_MESSAGES/messages.po | 12 +++++++++++- .../translations/zh/LC_MESSAGES/messages.mo | Bin 58363 -> 58389 bytes .../translations/zh/LC_MESSAGES/messages.po | 12 +++++++++++- .../zh_Hant_TW/LC_MESSAGES/messages.mo | Bin 43020 -> 43046 bytes .../zh_Hant_TW/LC_MESSAGES/messages.po | 12 +++++++++++- setup.cfg | 3 ++- 32 files changed, 168 insertions(+), 21 deletions(-) diff --git a/babel.cfg b/babel.cfg index 6ad03778..d6b4a82c 100644 --- a/babel.cfg +++ b/babel.cfg @@ -1,6 +1,6 @@ [python: **.py] -keywords = _ _l gettext +keywords = _ _l gettext pgettext:1c,2 [jinja2: **/templates/**.html] encoding = utf-8 -keywords = _ _l gettext +keywords = _ _l gettext pgettext:1c,2 diff --git a/changedetectionio/blueprint/ui/templates/diff.html b/changedetectionio/blueprint/ui/templates/diff.html index 4a89e24c..d654d8f0 100644 --- a/changedetectionio/blueprint/ui/templates/diff.html +++ b/changedetectionio/blueprint/ui/templates/diff.html @@ -25,7 +25,8 @@
{% if versions|length >= 1 %} - + {# TRANSLATORS: 'From' labels the older snapshot version selector on the diff page #} + - + {# TRANSLATORS: 'To' labels the newer snapshot version selector on the diff page #} +