i18n and tr
    Simon Hausmann 
    hausmann at kde.org
       
    Tue Dec 16 09:19:51 GMT 2003
    
    
  
On Tue, Dec 16, 2003 at 07:30:22AM +0100, Falk Brettschneider wrote:
> Hi,
> 
> This commit:
> >CVS commit by jowenn: 
> >
> >GUI: tr() calls removed and replaced by i18n(). From what I see this causes
> a few new \
> >strings in the pot file
> >
> >
> >  M +13 -12    kmdichildfrm.cpp   1.8
> >  M +2 -2      kmdichildfrmcaption.cpp   1.6
> >  M +3 -2      kmdichildview.cpp   1.10
> >  M +26 -26    kmdimainfrm.cpp   1.50
> makes me wonder if tr() can be a virtual method of a class in Qt4. Which can
> be overloaded by i18n. This way Qt applications could be adapted by KDE with
> less problems. I guess in that case, there would be no need to replace tr()
> by i18n(). Am I right?
KDE already installs a QTranslator that redirects the tr calls to
i18n. The point about the changes above is that xgettext can find
the translations in the first place, as it looks for i18n. Not sure
if it would cause problems to add tr to the list of keywords for
xgettext. Stephan?
Simon
    
    
More information about the kde-core-devel
mailing list