diff options
author | Nikola Pajkovsky <npajkovs@redhat.com> | 2009-09-02 11:39:27 +0200 |
---|---|---|
committer | Nikola Pajkovsky <npajkovs@redhat.com> | 2009-09-02 11:39:27 +0200 |
commit | 84ae8a43927b479a8b3565e43d0b3a109b164c21 (patch) | |
tree | 80a7bed6a04fdb9628b0b039b72050bc6175b712 /lib/MiddleWare/Plugin.h | |
parent | 6f27b31e64229bf15670b48a19b0348888b0ca28 (diff) | |
download | abrt-84ae8a43927b479a8b3565e43d0b3a109b164c21.tar.gz abrt-84ae8a43927b479a8b3565e43d0b3a109b164c21.tar.xz abrt-84ae8a43927b479a8b3565e43d0b3a109b164c21.zip |
add gettext support for all plugins
Diffstat (limited to 'lib/MiddleWare/Plugin.h')
-rw-r--r-- | lib/MiddleWare/Plugin.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/MiddleWare/Plugin.h b/lib/MiddleWare/Plugin.h index f3533a1e..39290231 100644 --- a/lib/MiddleWare/Plugin.h +++ b/lib/MiddleWare/Plugin.h @@ -31,6 +31,17 @@ #define PLUGINS_LIB_EXTENSION "so" #define PLUGINS_LIB_PREFIX "lib" +#if HAVE_CONFIG_H + #include <config.h> +#endif + +#if ENABLE_NLS + #include <libintl.h> + #define _(S) gettext(S) +#else + #define _(S) (S) +#endif + /** * An abstract class. The class defines a common plugin interface. If a plugin * has some settings, then a *Settings(*) method has to be written. |