Mercurial > audlegacy
comparison src/audacious/i18n.h @ 2387:af600aefd2cf trunk
[svn] - add i18n.h which wraps gettext in a way that is usable to plugins.
author | nenolod |
---|---|
date | Mon, 22 Jan 2007 18:19:50 -0800 |
parents | |
children | bb41a2e8ecbe 3b6d316f8b09 |
comparison
equal
deleted
inserted
replaced
2386:86ef3bf12a59 | 2387:af600aefd2cf |
---|---|
1 /* Audacious | |
2 * Copyright (c) 2006-2007 William Pitcock | |
3 * | |
4 * This program is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
6 * the Free Software Foundation; under version 2 of the License. | |
7 * | |
8 * This program is distributed in the hope that it will be useful, | |
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 * GNU General Public License for more details. | |
12 * | |
13 * You should have received a copy of the GNU General Public License | |
14 * along with this program; if not, write to the Free Software | |
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | |
16 * 02110-1301, USA. | |
17 */ | |
18 | |
19 #ifndef __AUDACIOUS_I18N_H__ | |
20 #define __AUDACIOUS_I18N_H__ | |
21 | |
22 #include <glib/gstrfuncs.h> | |
23 #include <libintl.h> | |
24 | |
25 #define _(String) dgettext (PACKAGE, String) | |
26 #define Q_(String) g_strip_context ((String), dgettext (PACKAGE, String)) | |
27 #ifdef gettext_noop | |
28 #define N_(String) gettext_noop (String) | |
29 #else | |
30 #define N_(String) (String) | |
31 #endif | |
32 | |
33 #endif |