From: Yves <yme...@pe...> - 2005-02-16 09:45:51
|
> --with-data-source=3Dnagios|asnmtap Data Source (default=3Dnagios) > > This allow you to use this code: > > #ifdef USE_SOURCE_NAGIOS > _("Host") > #elseif USE_SOURCE_ASNMTAP > _("Plugin") > #endif Again, in the #ifdef, use keywords, not translations. #ifdef USE_SOURCE_NAGIOS #define KEYWORD N_("Host") #elseif USE_SOURCE_ASNMTAP #define KEYWORD N_("Plugin") #endif /* ... */ printf("%s\n", _(KEYWORD)); Or : #ifdef USE_SOURCE_NAGIOS printf("%s\n", _("Host")); #elseif USE_SOURCE_ASNMTAP printf("%s\n", _("Plugin")); #endif If there is a translation file specific to asnmtap, there is a problem. I just wanted to make things clear. Sorry if this is redundant :) Yves --=20 - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - - GPG key - http://ymettier.free.fr/gpg.txt - - Maitretarot - http://www.nongnu.org/maitretarot/ - - Perfparse - http://www.perfparse.org/ - |