gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] Python gettext


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] Python gettext
Date: Sun, 1 Sep 2002 10:15:17 +0200
User-agent: Mutt/1.3.22.1i

> I would strongly encourage to include gmI18N in each module!
Not needed (installing _() in the root namespace wasn't my
decision - it came with the use of the class based gettext
interface).

> Reason: each module should have a testing function in the section "if 
> __name__ 
> == "__main__". 

if __name__ == "__main__":
    import gmI18N
    [...]

is what I suggested, anyways.

However, for plain testing even a simple
    _ = gettext.gettext
would suffice as it is neither mandatory nor necessary to have
i18n()ed testing code. Same goes for log messages IMHO.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

[Prev in Thread] Current Thread [Next in Thread]