[mythtv] i18n and mythweather conflict with locale setting

Matt Zimmerman mdz at debian.org
Mon Apr 21 16:38:18 EDT 2003


On Mon, Apr 21, 2003 at 09:11:26PM +0200, ramon.roca at xcombo.com wrote:

> I saw that, although I'm new in i18n, I have tried to include "tr()" at some
> literals at mythfrontend main.cpp but it gives me an error saying that tr is
> undeclared. Including "qtranslator.h" still says it's undeclared. What else
> is need?

It is a static method in the class QObject, so if you're not inside a class
which inherits QObject, use QObject::tr(...).

http://doc.trolltech.com/3.1/qobject.html#tr

-- 
 - mdz


More information about the mythtv-dev mailing list