xine-lib 1.2.13-20230125hg15249
xineintl.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2000-2009 the xine project
3 *
4 * This file is part of xine, a free video player.
5 *
6 * xine is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * xine is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19 */
20
21#ifndef HAVE_XINEINTL_H
22#define HAVE_XINEINTL_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#include <locale.h>
29
30#ifdef ENABLE_NLS
31# include <libintl.h>
32# define _(String) dgettext (XINE_TEXTDOMAIN, String)
33# ifdef gettext_noop
34# define N_(String) gettext_noop (String)
35# else
36# define N_(String) (String)
37# endif
38#else
39/* Stubs that do something close enough. */
40# define textdomain(String) (String)
41# define gettext(String) (String)
42# define dgettext(Domain,Message) (Message)
43# define dcgettext(Domain,Message,Type) (Message)
44# define ngettext(Singular, Plural, IsPlural) (Singular)
45# define bindtextdomain(Domain,Directory) (Domain)
46# define _(String) (String)
47# define N_(String) (String)
48#endif
49
50#ifdef __cplusplus
51}
52#endif
53
54#endif