~futatuki/mailman/2.1-listinfo-overview-client-lang

« back to all changes in this revision

Viewing changes to Mailman/i18n.py

  • Committer: Yasuhito FUTATSUKI at POEM
  • Date: 2017-06-06 10:34:51 UTC
  • mfrom: (1654.3.35 2.1)
  • Revision ID: futatuki@poem.co.jp-20170606103451-nmhlvj5u86s9maxw
Merge lp:mailman/2.1 up to rev 1713

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
if not mm_cfg.DISABLE_COMMAND_LOCALE_CSET:
37
37
    _ctype_charset = _get_ctype_charset()
 
38
else:
 
39
    _ctype_charset = None
38
40
 
39
41
 
40
42
 
108
110
 
109
111
def tolocale(s):
110
112
    global _ctype_charset
111
 
    if isinstance(s, UnicodeType):
 
113
    if isinstance(s, UnicodeType) or _ctype_charset is None:
112
114
        return s
113
115
    source = _translation.charset ()
114
116
    if not source: