summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-10-15 23:05:00 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-10-15 23:05:00 (GMT)
commitfad162d3da468f3fe6be4edee9443b1396236245 (patch)
tree266402853993096125648e0f5dd20c92b7a73a42
parent19222df231d65c7193499a5acbfda42a3e726a96 (diff)
Extract UI string also from PluginInterface.h (& set non-QObject context)
-rwxr-xr-xMessages.sh1
-rw-r--r--src/lib/marble/PluginInterface.h6
2 files changed, 5 insertions, 2 deletions
diff --git a/Messages.sh b/Messages.sh
index 6f447fe..3172406 100755
--- a/Messages.sh
+++ b/Messages.sh
@@ -45,5 +45,6 @@ $EXTRACT_TR_STRINGS \
src/apps/marble-ui/ControlView.cpp \
`find src/plugins -name '*.cpp' -o -name '*.ui' | grep -v '/test/'` \
`find src/lib -name '*.cpp' -o -name '*.ui'` \
+ src/lib/marble/PluginInterface.h \
src/lib/marble/MarbleGlobal.h rc.cpp \
-o $podir/marble_qt.pot
diff --git a/src/lib/marble/PluginInterface.h b/src/lib/marble/PluginInterface.h
index ecfd7ea..be899d5 100644
--- a/src/lib/marble/PluginInterface.h
+++ b/src/lib/marble/PluginInterface.h
@@ -15,7 +15,7 @@
#define MARBLE_PLUGININTERFACE_H
#include <QVector>
-#include <QObject> // for QObject::tr()
+#include <QCoreApplication> // for Q_DECLARE_TR_FUNCTIONS
#include <QString>
#include <QtPlugin>
@@ -28,10 +28,12 @@ namespace Marble
struct MARBLE_EXPORT PluginAuthor
{
+ Q_DECLARE_TR_FUNCTIONS(PluginAuthor)
+public:
PluginAuthor()
{}
- PluginAuthor( const QString &name_, const QString &email_, const QString &task_ = QObject::tr( "Developer" ) ) :
+ PluginAuthor( const QString &name_, const QString &email_, const QString &task_ = PluginAuthor::tr( "Developer" ) ) :
name( name_ ),
task( task_ ),
email( email_ )