]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GNUTranslations:
authorBarry Warsaw <barry@python.org>
Thu, 24 Apr 2003 18:13:39 +0000 (18:13 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 24 Apr 2003 18:13:39 +0000 (18:13 +0000)
commitc4acc2bd32f14c22f9cd7a95021184809e096ebe
treee51f109f210992aa53a0ca66b37cdb16c9fcd915
parentedb155fda199f7fa481d0020e911a6eec0705dfa
GNUTranslations:

    __init__(): Removed since we no longer need the coerce flag.
    Message ids and strings are now always coerced to Unicode, /if/
    the catalog specified a charset parameter.

    gettext(), ngettext(): Since the message strings are Unicodes in
    the catalog, coerce back to encoded 8-bit strings on return.

    ugettext(), ungettext(): Coerce the message ids to Unicode when
    there's no entry for the id in the catalog.

Minor code cleanups; use booleans where appropriate.
Lib/gettext.py