Search
lxdream.org :: lxdream/src/x86dasm/opintl.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/x86dasm/opintl.h
changeset 362:dc40e2064dc4
author nkeynes
date Tue Aug 28 08:46:54 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Add the i386 disassembler from binutils (why write your own if you don't
have to) to use for translator validation
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/x86dasm/opintl.h Tue Aug 28 08:46:54 2007 +0000
1.3 @@ -0,0 +1,42 @@
1.4 +/* opintl.h - opcodes specific header for gettext code.
1.5 + Copyright 1998, 1999, 2000 Free Software Foundation, Inc.
1.6 +
1.7 + Written by Tom Tromey <tromey@cygnus.com>
1.8 +
1.9 + This file is part of the opcodes library used by GAS and the GNU binutils.
1.10 +
1.11 + You should have received a copy of the GNU General Public License
1.12 + along with GAS; see the file COPYING. If not, write to the Free
1.13 + Software Foundation, 59 Temple Place - Suite 330, Boston, MA
1.14 + 02111-1307, USA. */
1.15 +
1.16 +#ifdef ENABLE_NLS
1.17 +# include <libintl.h>
1.18 +/* Note the use of dgetext() and PACKAGE here, rather than gettext().
1.19 +
1.20 + This is because the code in this directory is used to build a library which
1.21 + will be linked with code in other directories to form programs. We want to
1.22 + maintain a seperate translation file for this directory however, rather
1.23 + than being forced to merge it with that of any program linked to
1.24 + libopcodes. This is a library, so it cannot depend on the catalog
1.25 + currently loaded.
1.26 +
1.27 + In order to do this, we have to make sure that when we extract messages we
1.28 + use the OPCODES domain rather than the domain of the program that included
1.29 + the opcodes library, (eg OBJDUMP). Hence we use dgettext (PACKAGE, String)
1.30 + and define PACKAGE to be 'opcodes'. (See the code in configure). */
1.31 +# define _(String) dgettext (PACKAGE, String)
1.32 +# ifdef gettext_noop
1.33 +# define N_(String) gettext_noop (String)
1.34 +# else
1.35 +# define N_(String) (String)
1.36 +# endif
1.37 +#else
1.38 +# define gettext(Msgid) (Msgid)
1.39 +# define dgettext(Domainname, Msgid) (Msgid)
1.40 +# define dcgettext(Domainname, Msgid, Category) (Msgid)
1.41 +# define textdomain(Domainname) while (0) /* nothing */
1.42 +# define bindtextdomain(Domainname, Dirname) while (0) /* nothing */
1.43 +# define _(String) (String)
1.44 +# define N_(String) (String)
1.45 +#endif
.