glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] Refactoring


From: Sébastien
Subject: Re: [glob2-devel] Refactoring
Date: Tue, 2 May 2006 17:09:09 +0200
User-agent: KMail/1.9.1

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
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/glob2-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]