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

List:       kde-commits
Subject:    kdenonbeta/kdom/patternist/utils
From:       Frans Englich <frans.englich () telia ! com>
Date:       2006-09-25 11:47:33
Message-ID: 1159184853.462694.19453.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 588231 by englich:

Manage without klocale.h


 M  +9 -1      Locale.h  


--- trunk/kdenonbeta/kdom/patternist/utils/Locale.h #588230:588231
@@ -25,7 +25,15 @@
 #include <QTextDocument>
 #include <QUrl>
 
-#include <klocale.h>
+#ifdef WITH_KDE
+    static inline QString tr(const char *sourceText, const char *comment = 0)
+    {
+        return QObject::tr(sourceText, comment);
+    }
+    #define i18n tr
+#else
+    #include <klocale.h>
+#endif
 
 #include <kdom/patternist/type/Cardinality.h>
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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