[Python-bugs-list] [ python-Bugs-463572 ] Misleading documentation for gettext

noreply@sourceforge.net noreply@sourceforge.net
Fri, 21 Sep 2001 08:06:19 -0700


Bugs item #463572, was opened at 2001-09-21 07:43
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=463572&group_id=5470

Category: Documentation
Group: Python 2.1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Barry Warsaw (bwarsaw)
Summary: Misleading documentation for gettext

Initial Comment:
in location: 
http://www.python.org/doc/2.1.1/lib/node187.html 

there are docs for translation(), but there is no 
indication or link to mappings between the supplied 
language and the subdirectory actually searched. 
A link to the relevant information would help people 
considerably, or rather an NB mentioning that 
the 'languages' in the translation() docs is not the 
plural of the 'language' in the find() docs. 

Once I'd renamed my French resource directores fr -> 
fr_FR it all worked, of course, but I only discovered 
this from debugging gettext :(

kind regards, 

-Simon Harrison. 

On a side note, I have an alternative pygettext.py 
that inserts the English as the translated text when 
the "-t" option is supplied (test).  This has been 
fairly useful since it allows me to run the code, and 
test for correct operation prior to real translation.  
I can supply the new version if useful.


----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-09-21 08:06

Message:
Logged In: YES 
user_id=3066

Assigned to Barry.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=463572&group_id=5470