>--[Christian Biere]--<[EMAIL PROTECTED]>
> Daichi Kawahata wrote:
> > As a Japanese translator, I'd like to suggest using
> > ngettext() function, rather than preparing each form of
> > substantive with suffix character 's' in src/ui/gtk/settings.c.
> > Since there is no plural forms concerned with host(s),
> > connection(s), up/download(s) in my language or
> > non-Western languages?
> 
> Personally, I don't understand why people have a problem with
> "1 sources" or "1 Quellen". Human language needs redundance but
> actually requesting perfect grammar from a machine that hasn't
> got a single IQ is highly questionable - to say the least. As a
> compromise I'd just stick to "1 source(s)" and translate it with
> "1 Quelle(n)".

*shudder*

> > I know it might be make source code unsimplified or
> > looks ugly, and I'm sorry to say not sending a proper
> > patch, but it makes me happy if fixed this trivial problem.
> 
> I'm afraid that ngettext() is no option. We'd lose the ability to
> check format strings at compile-time

Please recheck your ngettext() declaration and rethink your statement.

> and we'd have to "translate"
> English messages for the plural form.

Please recheck your ngettext macro definition (used when NLS is disabled)
and rethink your statement.

> Also I have no idea how you can properly translate "%u match(es) in %u
> result(s)" because this might require 3 (if not 4) translations and
> sometimes you might have to change the order of the elements.

print (_("%u %s in %u %s"), matches, ngettext ("match", "matches", matches),
results, ngettext ("result", "results", results));

Looks fairly straight forward to me. Don't forget --keyword=ngettext:1:2.

PS. The order problem is orthogonal to plural forms and has also been
addressed in newer gettext implementations (e.g. GNU gettext).

-- 
  mailto:[EMAIL PROTECTED]
    http://www.ruediger-kuhlmann.de/


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Gtk-gnutella-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to