[Xfce-i18n] printf and argument order

Peeter Vois Peeter.Vois at proekspert.ee
Mon Sep 13 09:29:35 CEST 2004


Hi,

I did read printf manual page of glibc and it describes how to use
different order of arguments in message than programmed. For example:

n=10;
i=2;
printf( " %d apples from %d are bad\n", i, n );
=> 2 apples from 10 are bad

and it will be possible to translate it like this:

printf( " from %2$d apples only %1$d are bad\n", i, n );
=> from 10 apples only 2 are bad

So, in the translation there are arguments swapped.

Will it be a problem in some today used systems (man page describes that
C99 does not support it)? Or, will it be a problem if such a trick is
used in translations?

Best Regards 
Peeter Vois
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/xfce-i18n/attachments/20040913/e54c88da/attachment.html>


More information about the Xfce-i18n mailing list