[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Qt's tr() and KDE's i18n()
From:       Simon Hausmann <sh () caldera ! de>
Date:       2000-12-14 16:44:38
[Download RAW message or body]

On Thu, Dec 14, 2000 at 11:40:02AM -0500, Andre Charbonneau wrote:
> Hi
> 
> In my KDE application I would like to use KDE's i18n() function for 
> translation.  Since I'm using Qt Designer to create my GUI, I tell the uic 
> compiler to use i18n() instead of tr(), so that all the code in my 
> application uses KDE's i18n() function for translation.  (This is to avoid 
> having to deal with 2 types of message files for translation.)  The problem 
> is that my application will not compile since Qt's uic compiler does not 
> know what file to include for the declaration of KDE's i18n() function.
> Can anyone help me on this one?

Either add klocale.h to the list of included files in the form settings or
(better) use am_edit from the KDE build system, which adds klocale.h
to the list of includes automatically :)

Bye,
 Simon

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic