nkeynes@362 | 1 | /* opintl.h - opcodes specific header for gettext code.
|
nkeynes@362 | 2 | Copyright 1998, 1999, 2000 Free Software Foundation, Inc.
|
nkeynes@362 | 3 |
|
nkeynes@362 | 4 | Written by Tom Tromey <tromey@cygnus.com>
|
nkeynes@362 | 5 |
|
nkeynes@362 | 6 | This file is part of the opcodes library used by GAS and the GNU binutils.
|
nkeynes@362 | 7 |
|
nkeynes@362 | 8 | You should have received a copy of the GNU General Public License
|
nkeynes@362 | 9 | along with GAS; see the file COPYING. If not, write to the Free
|
nkeynes@362 | 10 | Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
nkeynes@362 | 11 | 02111-1307, USA. */
|
nkeynes@362 | 12 |
|
nkeynes@362 | 13 | #ifdef ENABLE_NLS
|
nkeynes@362 | 14 | # include <libintl.h>
|
nkeynes@362 | 15 | /* Note the use of dgetext() and PACKAGE here, rather than gettext().
|
nkeynes@362 | 16 |
|
nkeynes@362 | 17 | This is because the code in this directory is used to build a library which
|
nkeynes@362 | 18 | will be linked with code in other directories to form programs. We want to
|
nkeynes@362 | 19 | maintain a seperate translation file for this directory however, rather
|
nkeynes@362 | 20 | than being forced to merge it with that of any program linked to
|
nkeynes@362 | 21 | libopcodes. This is a library, so it cannot depend on the catalog
|
nkeynes@362 | 22 | currently loaded.
|
nkeynes@362 | 23 |
|
nkeynes@362 | 24 | In order to do this, we have to make sure that when we extract messages we
|
nkeynes@362 | 25 | use the OPCODES domain rather than the domain of the program that included
|
nkeynes@362 | 26 | the opcodes library, (eg OBJDUMP). Hence we use dgettext (PACKAGE, String)
|
nkeynes@362 | 27 | and define PACKAGE to be 'opcodes'. (See the code in configure). */
|
nkeynes@362 | 28 | # define _(String) dgettext (PACKAGE, String)
|
nkeynes@362 | 29 | # ifdef gettext_noop
|
nkeynes@362 | 30 | # define N_(String) gettext_noop (String)
|
nkeynes@362 | 31 | # else
|
nkeynes@362 | 32 | # define N_(String) (String)
|
nkeynes@362 | 33 | # endif
|
nkeynes@362 | 34 | #else
|
nkeynes@362 | 35 | # define gettext(Msgid) (Msgid)
|
nkeynes@362 | 36 | # define dgettext(Domainname, Msgid) (Msgid)
|
nkeynes@362 | 37 | # define dcgettext(Domainname, Msgid, Category) (Msgid)
|
nkeynes@362 | 38 | # define textdomain(Domainname) while (0) /* nothing */
|
nkeynes@362 | 39 | # define bindtextdomain(Domainname, Dirname) while (0) /* nothing */
|
nkeynes@362 | 40 | # define _(String) (String)
|
nkeynes@362 | 41 | # define N_(String) (String)
|
nkeynes@362 | 42 | #endif
|