Le Mardi 2 Mai 2006 09:42, Stéphane Magnenat a écrit :
> > I'm ok
> > the format string would be something like this "Hello %1, Welcome to %2"
> > But we have to handle precision and radix for numbers (some are displayed
> > in hexa)...
>
> Is there actually any number in glob2 that should be displayed in hexa?
>
> If so, I suggest we can use optional base argument, such as
> %x1, %d2, ...
>
> I also suggest we begin in 0 (to be Qt compatible), so your example, with
> translation, would be
>
> FormattableString s = FormattableString("Hello %0, Welcome
> to %1").arg(tr("[world]")).arg(tr("[glob2]"));
>
> I love this, it becomes more and more Qtish ;-)
In fact, to be more Qtish, radix and precision should be precised in arg 
function (this way, parsing is much simpler and so code is cleaner)
>
> Steph
>
>
> _______________________________________________
> glob2-devel mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/glob2-devel


_______________________________________________
glob2-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/glob2-devel

Reply via email to