glob2-devel
[Top][All Lists]
Advanced

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

Re: [glob2-devel] Refactoring


From: Stéphane Magnenat
Subject: Re: [glob2-devel] Refactoring
Date: Tue, 02 May 2006 09:42:02 +0200
User-agent: KMail/1.9.1

> 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 ;-)

Steph




reply via email to

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