Re: Automatic language translation

2005-08-27 Thread Mariano Draghi
Jon wrote: > Does python have a module that will translate between different spoken > languages? My python program displays all of its messages in English > currently and my boss wants it to default to Korean now. > > Any ideas how to go about doing this? > You need to use gettext. Please, have

Re: is there an equivalent of javascript's this["myMethod"] for the currently running script?

2005-07-05 Thread Mariano Draghi
[EMAIL PROTECTED] wrote: > I'd like to dynamically find and invoke a method in a Python CGI. > > In javascript, the running script is 'this' (Python's 'self'), except > that 'self' is not defined. > > I want to do this: > > var m = this["MethodName"]; //where the method name is passed via an >

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux & Windows XP

2005-02-22 Thread Mariano Draghi
Hace mucho tiempo en una galaxia muy, muy lejana, Mike Dee escribió: A very very basic UTF-8 question that's driving me nuts: If I have this in the beginning of my Python script in Linux: #!/usr/bin/env python # -*- coding: UTF-8 -*- should I - or should I not - be able to use non-ASCII characte

Re: what would you like to see in a 2nd edition Nutshell?

2004-12-30 Thread Mariano Draghi
Alex Martelli escribió: Yes, good point... I _do_ plan another book after I'm done with the 2nd ed Nutshell, though ti will mostly be about Design Patterns and development methods so may not meet your exact desires... Now I'm anxious! *that* is the book I'm waiting for :) I think the Python commu