Sergey Alyoshin <[email protected]> wrote: > On Wed, Aug 3, 2016 at 3:38 PM, Sergey Alyoshin <[email protected]> wrote: >> On Wed, Aug 3, 2016 at 3:19 PM, Dominique Pellé >> <[email protected]> wrote: >>> Sergey Alyoshin <[email protected]> wrote: >>> >>>> Hello >>>> >>>> This patch add ngettext() support to allow localization with plural >>>> form, e.g. in folded line count message. >>> >>> That's the wrong way of fixing this in my opinion: >>> - It assumes that plural is n != 1. Rules for what's plural or singular >>> are different in different languages. >>> In English, plural is for n != 1. In French plural is for n >= 2 for >>> example. >>> - It assumes that there are only 2 forms (plurals and singular), but >>> several languages have more than 2 plural forms (Polish has 3 for >>> example). >>> >>> The right way to fix it would be to use the plural form feature of gettext. >> >> Actually it is ngettext() from libintl. > > And this null_libintl_ngettext() is just a stub if libintl is not available: > > +null_libintl_ngettext(const char *msgid, const char *msgid_plural, > + unsigned long int n) > +{ > + if (n == 1) > + return (char *)msgid; > + else > + return (char *)msgid_plur; > +}
I see. Sorry, I read it too quickly. I misunderstood that tt was a stub. Regards Dominique -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
