[haiku-commits] Re: r40695 - haiku/trunk/src/kits/support

  • From: Adrien Destugues <pulkomandy@xxxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 26 Feb 2011 11:15:35 +0100

Le 26/02/2011 11:09, Philippe Houdoin a écrit :
It supports reordering of arguments but you need to explicitly
give each argument a position number, in the format string.
See: http://linux.die.net/man/3/printf
I know, but translators don't get that much info from the argument number
when it comes to translate "before doing %$1s, you must %$2s!", while
the *meaning* of each argument
could leads to a better translation eventually changing the order.

Named arguments can vehicle such meaning.
And make the code more easier to understand, too.

One can argue that B_TRANSLATE_COMMENT() too, though.
There are possible and not too complicated solutions to make named arguments work. I'd like to use them. Using printf like syntax is like going back in the 1970s...

--
Adrien.

Other related posts: