>--[Christian Biere]--<[EMAIL PROTECTED]>
> R�diger Kuhlmann wrote:
> > > 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));
> "3 Streichh�lzer in 5 Messwerten."
> There can be only key for each string, right? "match" can be translated
> as "Streichholz", "�bereinstimmung" or "stimmen �berein".
Yes. But that problem is also orthogonal to plural forms. The problem here
is that there are two plural forms in one phrase, which is a very compacted
sentence.
> > Looks fairly straight forward to me. Don't forget --keyword=ngettext:1:2.
> I didn't know that ngettext() is not meant to be used with format strings.
I don't remember saying such. Although
print (ngettext ("Found %u match in %u %s.", "Found %u matches in %u %s.",
matches),
matches, results, ngettext ("result", "results", results));
might be a better idea, avoiding this particular problematic word.
> Looking at the current set of translatable format string it's possible that
> such hacks work.
It's not a hack. If there turn out to be translatable strings used
with different meanings, the translators will tell you, and then
it's time to worry about how to fix it (e.g. indeed by using
_("(verb)match") + 6
if there is _really_ no other way).
PS. Using a temporary one can get to the clean solution of using
*printf (buffer..., ngettext ("in %u results.", "in %u results.", results),
results);
printf (ngettext ("Found %u match %s", "Found %u matches %s", matches),
matches, buffer);
--
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