From 33ba5f0a621f9720e7a4d289cdde57f21be949ca Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Mon, 5 Dec 2016 11:38:33 -0800 Subject: Fixed a NameError issue in bin/add_members with DISABLE_COMMAND_LOCALE_CSET = yes. --- Mailman/i18n.py | 4 +++- NEWS | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Mailman/i18n.py b/Mailman/i18n.py index b8b527e0..605d4e76 100644 --- a/Mailman/i18n.py +++ b/Mailman/i18n.py @@ -35,6 +35,8 @@ def _get_ctype_charset(): if not mm_cfg.DISABLE_COMMAND_LOCALE_CSET: _ctype_charset = _get_ctype_charset() +else: + _ctype_charset = None @@ -108,7 +110,7 @@ def _(s, frame=1): def tolocale(s): global _ctype_charset - if isinstance(s, UnicodeType): + if isinstance(s, UnicodeType) or _ctype_charset is None: return s source = _translation.charset () if not source: diff --git a/NEWS b/NEWS index 2e89898e..4e4ac191 100644 --- a/NEWS +++ b/NEWS @@ -23,6 +23,9 @@ Here is a history of user visible changes to Mailman. Bug fixes and other patches + - Fixed a NameError issue in bin/add_members with + DISABLE_COMMAND_LOCALE_CSET = yes. (LP: #1647450) + - The CleanseDKIM handler has been removed from OWNER_PIPELINE. It isn't needed there and has adverse DMARC implications for messages to -owner of an anonymous list. (LP: #1645901) -- cgit v1.2.3 From 5bd8d721b205a4b0d6ac3ef02f85353a32c678aa Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Tue, 17 Jan 2017 15:31:01 -0800 Subject: Recoded Polish html templates to use html entities. --- NEWS | 3 + templates/pl/admlogin.html | 20 ++--- templates/pl/archidxfoot.html | 8 +- templates/pl/archidxhead.html | 12 +-- templates/pl/archliststart.html | 2 +- templates/pl/archtoc.html | 2 +- templates/pl/archtocentry.html | 2 +- templates/pl/archtocnombox.html | 2 +- templates/pl/article.html | 14 +-- templates/pl/emptyarchive.html | 6 +- templates/pl/listinfo.html | 26 +++--- templates/pl/options.html | 186 ++++++++++++++++++++-------------------- templates/pl/private.html | 22 ++--- templates/pl/roster.html | 6 +- 14 files changed, 157 insertions(+), 154 deletions(-) mode change 100755 => 100644 templates/pl/admlogin.html mode change 100755 => 100644 templates/pl/private.html diff --git a/NEWS b/NEWS index 4e4ac191..94602592 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,9 @@ Here is a history of user visible changes to Mailman. i18n + - The Polish html templates have been recoded to use html entities + instead of non-ascii characters. + - The Basque (Euskara) translation has been updated by Gari Araolaza. - The German "details for personalize" page has been updated by diff --git a/templates/pl/admlogin.html b/templates/pl/admlogin.html old mode 100755 new mode 100644 index 72727873..095fca7f --- a/templates/pl/admlogin.html +++ b/templates/pl/admlogin.html @@ -15,25 +15,25 @@ -
Hasło %(who)s:
+
Hasło %(who)s:
+ value="Wejście"> -

Uwaga: Od tego miejsca musisz mieć - włączoną obsługę ciasteczek (cookies) w przeglądarce. W przeciwnym - razie zmiany administracyjne nie przyniosą efektu. +

Uwaga: Od tego miejsca musisz mieć + włączoną obsługę ciasteczek (cookies) w przeglądarce. W przeciwnym + razie zmiany administracyjne nie przyniosą efektu. -

Mechanizm ciasteczek wykorzystywany jest w Mailmanie, żeby - nie trzeba było podawać hasła przy każdej czynności administracyjnej. - Identyfikujące Cię ciasteczko automatycznie wygaśnie, gdy wyłączysz - przeglądarkę, lub jeśli bezpośrednio kliniejsz odnośnik - Wyloguj się w sekcji Inne czynności administracyjne. +

Mechanizm ciasteczek wykorzystywany jest w Mailmanie, żeby + nie trzeba było podawać hasła przy każdej czynności administracyjnej. + Identyfikujące Cię ciasteczko automatycznie wygaśnie, gdy wyłączysz + przeglądarkę, lub jeśli bezpośrednio kliniejsz odnośnik + Wyloguj się w sekcji Inne czynności administracyjne. diff --git a/templates/pl/archidxfoot.html b/templates/pl/archidxfoot.html index 111d363b..cb852633 100644 --- a/templates/pl/archidxfoot.html +++ b/templates/pl/archidxfoot.html @@ -1,16 +1,16 @@

- Data ostatniej wiadomości: %(lastdate)s
+ Data ostatniej wiadomości: %(lastdate)s
Data archiwizacji: %(archivedate)s

-


Archiwum zostało wygenerowane przez program Pipermail %(version)s. +


Archiwum zostało wygenerowane przez program Pipermail %(version)s. diff --git a/templates/pl/archidxhead.html b/templates/pl/archidxhead.html index 30a77527..44d9ae3c 100644 --- a/templates/pl/archidxhead.html +++ b/templates/pl/archidxhead.html @@ -1,22 +1,22 @@ - Lista %(listname)s %(archive)s sortowane według %(archtype)s + Lista %(listname)s %(archive)s sortowane według %(archtype)s %(encoding)s -

Archiwum za %(archive)s posortowane według %(archtype)s

+

Archiwum za %(archive)s posortowane według %(archtype)s

-

Początek: %(firstdate)s
+

Początek: %(firstdate)s
Koniec: %(lastdate)s
- Liczba wiadomości: %(size)s

+ Liczba wiadomości: %(size)s