summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGustavo Niemeyer <gustavo@niemeyer.net>2004-07-22 18:44:01 (GMT)
committerGustavo Niemeyer <gustavo@niemeyer.net>2004-07-22 18:44:01 (GMT)
commit7bd33c5e22c67e06042fb7ab1186f7587d78153d (patch)
tree16506bbe1ea96afd7c579802ed92dd1eb8c62a14 /Misc
parent5980ff2d924b55cf963e9fb69f41c86b45f4099a (diff)
downloadcpython-7bd33c5e22c67e06042fb7ab1186f7587d78153d.zip
cpython-7bd33c5e22c67e06042fb7ab1186f7587d78153d.tar.gz
cpython-7bd33c5e22c67e06042fb7ab1186f7587d78153d.tar.bz2
This change implements the following gettext features, as
discussed recently in python-dev: In _locale module: - bind_textdomain_codeset() binding In gettext module: - bind_textdomain_codeset() function - lgettext(), lngettext(), ldgettext(), ldngettext(), which return translated strings encoded in preferred system encoding, if bind_textdomain_codeset() was not used. - Added equivalent functionality in translate() function and catalog classes. Every change was also documented.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS8
1 files changed, 8 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 6e8c710..acb6f62 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -33,6 +33,8 @@ Core and builtins
will cause a TypeError to be raised. This matches the behavior of
Jython.
+- Implemented bind_textdomain_codeset() in locale module.
+
Extension modules
-----------------
@@ -112,6 +114,12 @@ Library
- Bug #990307: when keep_empty_values is True, cgi.parse_qsl()
no longer returns spurious empty fields.
+- Implemented bind_textdomain_codeset() in gettext module.
+
+- Introduced in gettext module the l*gettext() family of functions,
+ which return translation strings encoded in the preferred encoding,
+ as informed by locale module's getpreferredencoding().
+
Tools/Demos
-----------