From 6da1c378c4d57b3bc5d345b5d56e515a831ddd1b Mon Sep 17 00:00:00 2001 From: mrwastl Date: Thu, 16 Jun 2011 19:50:00 +0200 Subject: bug fix: change order of translation-stuff for description --- plugin.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin.c b/plugin.c index 354f724..714f0bc 100644 --- a/plugin.c +++ b/plugin.c @@ -26,12 +26,13 @@ #if APIVERSNUM < 10503 #include "i18n.h" + #define trNOOP(_s) (_s) #endif static const char * kPluginName = "graphlcd"; static const char *VERSION = "0.2.0-touchcol-git"; -static const char *DESCRIPTION = tr("Output to graphic LCD"); +static const char *DESCRIPTION = trNOOP("Output to graphic LCD"); static const char *MAINMENUENTRY = NULL; static const char * kDefaultConfigFile = "/etc/graphlcd.conf"; @@ -52,7 +53,7 @@ public: cPluginGraphLCD(); virtual ~cPluginGraphLCD(); virtual const char * Version() { return VERSION; } - virtual const char * Description() { return DESCRIPTION; } + virtual const char * Description() { return tr(DESCRIPTION); } virtual const char * CommandLineHelp(); virtual bool ProcessArgs(int argc, char * argv[]); virtual bool Initialize(); -- cgit v1.2.3