Re: [PyQt] Translation of strings with Python formating

2011-01-04 Thread Detlev Offenbach
On Montag, 3. Januar 2011, Nahuel Defossé wrote: > Hi > > I've noticed that both QObject.trUtf8 and QObject.tr do not return > Python strings, what is rather unconvinient when using the % operator > to format strings. > I prefer str % operator since it accepts keyword arguments, something > that i

[PyQt] Translation of strings with Python formating

2011-01-03 Thread Nahuel Defossé
Hi I've noticed that both QObject.trUtf8 and QObject.tr do not return Python strings, what is rather unconvinient when using the % operator to format strings. I prefer str % operator since it accepts keyword arguments, something that is not that simple QString.arg method. What is your advice to g