diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2003-11-01 23:19:01 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2003-11-01 23:19:01 +0000 |
commit | 2b16f8c0d57ec31f5e09a51fc4af8cb13da8e9ee (patch) | |
tree | f918e131c6f2bb464ba85746ad70aeecd23fda70 /src/common/weechat.h | |
parent | 273f4860fe2c2a8088226dd59a05ae773b6600df (diff) | |
download | weechat-2b16f8c0d57ec31f5e09a51fc4af8cb13da8e9ee.zip |
Added #ifdef ENABLE_NLS (do not translate if ./configure --disable-nls)
Diffstat (limited to 'src/common/weechat.h')
-rw-r--r-- | src/common/weechat.h | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/src/common/weechat.h b/src/common/weechat.h index 2e676ca86..7a6c75ca7 100644 --- a/src/common/weechat.h +++ b/src/common/weechat.h @@ -23,13 +23,27 @@ #ifndef __WEECHAT_H #define __WEECHAT_H 1 +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include <stdio.h> -#include <locale.h> -#include <libintl.h> -#define PACKAGE "weechat" -#define _(string) gettext(string) -#define N_(string) (string) +#if defined(ENABLE_NLS) && !defined(_) + #include <locale.h> + #include <libintl.h> + #define _(x) gettext(x) + #ifdef gettext_noop + #define N_(string) gettext_noop (string) + #else + #define N_(string) (string) + #endif +#endif +#if !defined(_) + #define _(x) (x) + #define N_(string) (string) +#endif + #define WEECHAT_COPYRIGHT PACKAGE_NAME " (c) 2003 by Wee Team" #define WEECHAT_WEBSITE "http://weechat.flashtux.org" |