nkeynes@362: /* opintl.h - opcodes specific header for gettext code. nkeynes@362: Copyright 1998, 1999, 2000 Free Software Foundation, Inc. nkeynes@362: nkeynes@362: Written by Tom Tromey nkeynes@362: nkeynes@362: This file is part of the opcodes library used by GAS and the GNU binutils. nkeynes@362: nkeynes@362: You should have received a copy of the GNU General Public License nkeynes@362: along with GAS; see the file COPYING. If not, write to the Free nkeynes@362: Software Foundation, 59 Temple Place - Suite 330, Boston, MA nkeynes@362: 02111-1307, USA. */ nkeynes@362: nkeynes@362: #ifdef ENABLE_NLS nkeynes@362: # include nkeynes@362: /* Note the use of dgetext() and PACKAGE here, rather than gettext(). nkeynes@362: nkeynes@362: This is because the code in this directory is used to build a library which nkeynes@362: will be linked with code in other directories to form programs. We want to nkeynes@362: maintain a seperate translation file for this directory however, rather nkeynes@362: than being forced to merge it with that of any program linked to nkeynes@362: libopcodes. This is a library, so it cannot depend on the catalog nkeynes@362: currently loaded. nkeynes@362: nkeynes@362: In order to do this, we have to make sure that when we extract messages we nkeynes@362: use the OPCODES domain rather than the domain of the program that included nkeynes@362: the opcodes library, (eg OBJDUMP). Hence we use dgettext (PACKAGE, String) nkeynes@362: and define PACKAGE to be 'opcodes'. (See the code in configure). */ nkeynes@362: # define _(String) dgettext (PACKAGE, String) nkeynes@362: # ifdef gettext_noop nkeynes@362: # define N_(String) gettext_noop (String) nkeynes@362: # else nkeynes@362: # define N_(String) (String) nkeynes@362: # endif nkeynes@362: #else nkeynes@362: # define gettext(Msgid) (Msgid) nkeynes@362: # define dgettext(Domainname, Msgid) (Msgid) nkeynes@362: # define dcgettext(Domainname, Msgid, Category) (Msgid) nkeynes@362: # define textdomain(Domainname) while (0) /* nothing */ nkeynes@362: # define bindtextdomain(Domainname, Dirname) while (0) /* nothing */ nkeynes@362: # define _(String) (String) nkeynes@362: # define N_(String) (String) nkeynes@362: #endif