(Joe keane) writes:
> In article <>,
> Kaz Kylheku <> wrote:
>>Suppose you had a translations file with records
>
> For simple things:
>
> printf("s %3d %9.6f\n", j, sum);
>
> printf works great, and i have no problem with it.
>
> Concise, easy to learn, easy to understand.
>
> If you add user-defined operators (what next, while loops?), and your
> format strings are other than compile-time constants, i just think
> you'll be dishappy with the result.
>
> I18N is more than switching format strings. There are libraries to do
> it, and you'll probably save yourself headaches if you make use of them.
Absolutely. Some of them, in fact, such as GNU gettext, work the
way that Kaz describes.
--
"Your correction is 100% correct and 0% helpful. Well done!"
--Richard Heathfield