1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

Added #ifdef ENABLE_NLS (do not translate if ./configure --disable-nls)

This commit is contained in:
Sebastien Helleu
2003-11-01 23:19:01 +00:00
parent 273f4860fe
commit 2b16f8c0d5
4 changed files with 44 additions and 12 deletions
+2
View File
@@ -230,9 +230,11 @@ main (int argc, char *argv[])
{
t_irc_server *ptr_server;
#ifdef ENABLE_NLS
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
#endif
/* pre-initiliaze interface */
gui_pre_init (&argc, &argv);
+20 -6
View File
@@ -23,13 +23,27 @@
#ifndef __WEECHAT_H
#define __WEECHAT_H 1
#include <stdio.h>
#include <locale.h>
#include <libintl.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#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 PACKAGE "weechat"
#define _(string) gettext(string)
#define N_(string) (string)
#define WEECHAT_COPYRIGHT PACKAGE_NAME " (c) 2003 by Wee Team"
#define WEECHAT_WEBSITE "http://weechat.flashtux.org"
+2
View File
@@ -230,9 +230,11 @@ main (int argc, char *argv[])
{
t_irc_server *ptr_server;
#ifdef ENABLE_NLS
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
#endif
/* pre-initiliaze interface */
gui_pre_init (&argc, &argv);
+20 -6
View File
@@ -23,13 +23,27 @@
#ifndef __WEECHAT_H
#define __WEECHAT_H 1
#include <stdio.h>
#include <locale.h>
#include <libintl.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#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 PACKAGE "weechat"
#define _(string) gettext(string)
#define N_(string) (string)
#define WEECHAT_COPYRIGHT PACKAGE_NAME " (c) 2003 by Wee Team"
#define WEECHAT_WEBSITE "http://weechat.flashtux.org"