commit | c4acc2bd32f14c22f9cd7a95021184809e096ebe | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Thu Apr 24 18:13:39 2003 +0000 |
committer | Barry Warsaw <barry@python.org> | Thu Apr 24 18:13:39 2003 +0000 |
tree | e51f109f210992aa53a0ca66b37cdb16c9fcd915 | |
parent | edb155fda199f7fa481d0020e911a6eec0705dfa [diff] |
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.