Re: Recent i18n Pylons changes

Ian Bicking <[email protected]>
Newsgroups gmane.comp.python.formencode
Message-ID <[email protected]>
Philip Jenvey wrote:
> On Dec 14, 2006, at 12:48 PM, Pedro Algarvio, aka, s0undt3ch wrote:
> 
>> I agree with Ben's arguments, I expect _() to simply exist and do the
>> correct job, what about binding ungettext to N_()? would that clutter
>> the namespace?
>>
> 
> gettext docs describe N_ as being bound to gettext_noop, to mark  
> static strings for extraction but not actually translate them, e.g.:
> 
> fubar.py:
> foo = N_('Don't translate this on import')
> 
> class Bar:
> 	def __init__(self):
> 		print _(foo)
> 
> N_ would also be useful to have.

Hmm... that would be a useful convention for FormEncode, since we don't 
want to translate strings on import but we have lots of dummy _()'s just 
for extraction.

-- 
Ian Bicking | [email protected] | http://blog.ianbicking.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.