New i18n interface for KDE 4

Nicolas Goutte nicolasg at snafu.de
Fri Sep 16 06:07:21 BST 2005


On Thursday 15 September 2005 22:53, Chusslove Illich wrote:
> >> [: Michael Olbrich :]
> >> const char *msg = "Blah, blah: %1";
> >> ...
> >> i18n(msg, foo);
> >
> > [: Nicolas Goutte :]
> > That does not work with the patched xgettext that KDE uses, not even if
> > you would define the text in the i18n call.
> >
> > This could however work with a normal xgettext (with the text defined
> > in the call), as some of the Gettext functions are printf-like. [...]
>
> Actually, it wouldn't. For unpatched Gettext to work with any system, there
> would have to be no context info call, which is, I think, not acceptable.

Sorry, you are right. (I had forgote this problem for a moment.)

>
> So, the second idea (of Stephan Kulow) is to have a little script which
> would temporary rewrite i18n() calls, in such way that unpatched xgettext
> can process it.

I do not mind, as long as the file reference (files, line numbers) are kept 
correctly. (Otherwise it would be again one feature of KBabel that is lost.)

>

(...)

Have a nice day!





More information about the kde-core-devel mailing list