RE: [QtEI] Translation suggestion

2009-04-30 Thread Roland
> > The disadvantage of using QObject::tr() compared to qApp->translate() > > eh? from what you wrote earlier i got the impression it is exactly the > other way round. You're right, kind of confusing. This is how I understood how it works: When using QCoreApplication::translate() you have to pr

Re: [QtEI] Translation suggestion

2009-04-30 Thread arne anka
> The disadvantage of using QObject::tr() compared to qApp->translate() eh? from what you wrote earlier i got the impression it is exactly the other way round. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/

RE: [QtEI] Translation suggestion

2009-04-30 Thread Roland
> > Another consideration is that tr() is only available in classes > derived > > from > > QObject - but since normally the strings you want to translate are > > generated > > in Gui-classes this is normally the case. > > iirc tr is a static method of QObject, ie QObject::tr() should be > possible

Re: [QtEI] Translation suggestion

2009-04-30 Thread arne anka
> Another consideration is that tr() is only available in classes derived > from > QObject - but since normally the strings you want to translate are > generated > in Gui-classes this is normally the case. iirc tr is a static method of QObject, ie QObject::tr() should be possible regardless

RE: [QtEI] Translation suggestion

2009-04-30 Thread Roland
ocati > Sent: Thursday, April 30, 2009 6:41 AM > To: List for Openmoko community discussion > Subject: Re: [QtEI] Translation suggestion > > On the doc.trolltech.com, there isn't written that QApp->translate is > better than tr, if I read correctly. > > http://doc.trollt

Re: [QtEI] Translation suggestion

2009-04-29 Thread Fabio Locati
On the doc.trolltech.com, there isn't written that QApp->translate is better than tr, if I read correctly. http://doc.trolltech.com/4.5/qobject.html#tr http://doc.trolltech.com/4.5/qcoreapplication.html#translate Then is better leaving the tr() or switching to QApp->translate()? On Sun, Apr 26,

Re: [QtEI] Translation suggestion

2009-04-26 Thread Franky Van Liedekerke
On Sun, 26 Apr 2009 23:14:05 +0200 Fabio Locati wrote: > I have looked around and it seems that QtEI should be translated with > Qt Linguistic. Is this the best tool? > I don't know the tool, but I do believe there's much work to be done here: many classes still use "" while I believe every cla