1 | /* |
---|
2 | * bonobo-activation-i18n.h: internationalization support for bonobo-activation. |
---|
3 | * |
---|
4 | * Shamelessly stolen from gnome-libs or somewhere else. |
---|
5 | * Cannot remmeber exactly where. |
---|
6 | * |
---|
7 | * This library is free software; you can redistribute it and/or |
---|
8 | * modify it under the terms of the GNU General Public License as |
---|
9 | * published by the Free Software Foundation; either version 2 of the |
---|
10 | * License, or (at your option) any later version. |
---|
11 | * |
---|
12 | * This library is distributed in the hope that it will be useful, |
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
15 | * General Public License for more details. |
---|
16 | * |
---|
17 | * You should have received a copy of the GNU General Public License |
---|
18 | * along with this library; if not, write to the Free Software |
---|
19 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
20 | * |
---|
21 | */ |
---|
22 | |
---|
23 | #ifdef ENABLE_NLS |
---|
24 | # include <libintl.h> |
---|
25 | # undef _ |
---|
26 | # define _(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 | #else |
---|
33 | /* Stubs that do something close enough. */ |
---|
34 | # define textdomain(String) (String) |
---|
35 | # define gettext(String) (String) |
---|
36 | # define dgettext(Domain,Message) (Message) |
---|
37 | # define dcgettext(Domain,Message,Type) (Message) |
---|
38 | # define bindtextdomain(Domain,Directory) (Domain) |
---|
39 | # define _(String) (String) |
---|
40 | # define N_(String) (String) |
---|
41 | #endif |
---|