From 09899d618c80bcf584d290185e86fa468c3bed4b Mon Sep 17 00:00:00 2001 From: Zdenek Jonak Date: Fri, 19 May 2017 21:31:17 +0200 Subject: [PATCH] translation support for camp plugin --- camp/camp.cpp | 5 +++++ camp/camp.h | 1 + 2 files changed, 6 insertions(+) diff --git a/camp/camp.cpp b/camp/camp.cpp index 351d31e..156c912 100644 --- a/camp/camp.cpp +++ b/camp/camp.cpp @@ -20,3 +20,8 @@ QIcon Camp::pluginIcon() { return QIcon(":/icons/campPlugin.svg"); } + +QTranslator *Camp::translator() +{ + return translatorFrom(":/translations/camp_"); +} diff --git a/camp/camp.h b/camp/camp.h index 9c79aa9..2073a4b 100644 --- a/camp/camp.h +++ b/camp/camp.h @@ -22,6 +22,7 @@ protected: // IPlugin interface public: virtual QIcon pluginIcon(); + QTranslator *translator(); }; #endif // CAMP_H