On 12/14/06, Pedro Algarvio, aka, s0undt3ch <[EMAIL PROTECTED]> wrote:
> One way to use ungettext, or better, we could also attach ungettext to
> N_() like some C progams do, just an idea.

ungettext and N_ aren't the same thing.  N_ is used to mark a string
for translation but *not* translate it.  That way you can explicitly
call ugettext later on dynamic data:

    a = N_("Hi")
    ugettext(a)

However, ungettext (note the "n") is for *plurals*:

    ungettext("I have %s dog.", "I have %s dogs.", n)

Happy Hacking!
-jj

-- 
http://jjinux.blogspot.com/

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to