This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Bad examples of gettext.translation
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: adurdin, facundobatista, jlgijsbers
Priority: normal Keywords:

Created on 2004-09-03 23:22 by facundobatista, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg22353 - (view) Author: Facundo Batista (facundobatista) * (Python committer) Date: 2004-09-03 23:22
The usage examples on "6.27.3.3 Changing languages on
the fly"
(http://www.python.org/dev/doc/devel/lib/node293.html)
are incorrect, because of the syntax of
gettext.translation.

The examples just don't match "6.27.2 Class-based API"
(http://www.python.org/dev/doc/devel/lib/node285.html),
and they gave me an error when tried them:the "domain"
is not optional.
msg22354 - (view) Author: Andrew Durdin (adurdin) Date: 2004-09-08 09:24
Logged In: YES 
user_id=625864

Same issue here when I tried it. I've created patch #1024238
to fix it.
msg22355 - (view) Author: Johannes Gijsbers (jlgijsbers) * (Python triager) Date: 2004-09-11 17:34
Logged In: YES 
user_id=469548

Fixed by applying patch #1024238.
History
Date User Action Args
2022-04-11 14:56:06adminsetgithub: 40866
2004-09-03 23:22:41facundobatistacreate