[Bug 345587] Re: Not showing localized plural strings

Milo Casagrande milo at milo.name
Sat Mar 21 19:48:06 UTC 2009


Il giorno sab, 21/03/2009 alle 19.18 +0000, Christoph Korn ha scritto:
> I read the examples here:
> http://live.gnome.org/TranslationProject/DevGuidelines/Plurals
> 
> g_printf (ngettext ("You tried to move %d folder at once. You can't move more than 256 folders at once.",
>                     "You tried to move %d folders at once. You can't move more than 256 folders at once.",
>                     nbr_of_folders),
>           nbr_of_folders);
> The string are not enclosed with _() here.
> So I supposed that my approach to remove the N_() had to work.

Yes, with that example yes, but because in that example they have the
strings directly inside the ngettext function. With the fusa applet, the
strings are not directly inside the function, but are outside and you
need the N_() macro because you can't use the strings directly, but you
have to call gettext() or _() when you are going to use them.

-- 
Milo Casagrande <milo at milo.name>

-- 
Not showing localized plural strings
https://bugs.launchpad.net/bugs/345587
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list