I18n issue with optik

Steven Bethard steven.bethard at gmail.com
Sat Mar 31 22:08:45 EDT 2007


Thorsten Kampe wrote:
> I've written a script which uses Optik/Optparse to display the 
> options (which works fine). The text for the help message is localised 
> (with german umlauts) and when I execute the script with the localised 
> environment variable set, I get this traceback[1]. The interesting 
> thing is that the localised optparse messages from displays fine - 
> it's only my localisation that errors.
> 
> From my understanding, my script doesn't put out anything, it's 
> optik/optparse who does that. My po file is directly copied from the 
> optik po file (who displays fine) and modified so the po file should 
> be fine, too.
> 
> What can I do to troubleshoot whether the culprit is my script, optik 
> or gettext?
> 
> Would it make sense to post the script and the mo or po files?

Yes, probably.  Though if you can reduce it to the simplest test case 
that produces the error, it'll increase your chances of having someone 
look at it.

You could also try posting to the optik list:
     http://lists.sourceforge.net/lists/listinfo/optik-users

STeVe



More information about the Python-list mailing list