filename | src/x86dasm/opintl.h |
changeset | 362:dc40e2064dc4 |
author | nkeynes |
date | Sun Jun 22 03:59:56 2008 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Add a get_filename method to gdlist return mount resuls from gdrom_list_set_selection() |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/src/x86dasm/opintl.h Sun Jun 22 03:59:56 2008 +00001.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 License1.12 + along with GAS; see the file COPYING. If not, write to the Free1.13 + Software Foundation, 59 Temple Place - Suite 330, Boston, MA1.14 + 02111-1307, USA. */1.15 +1.16 +#ifdef ENABLE_NLS1.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 which1.21 + will be linked with code in other directories to form programs. We want to1.22 + maintain a seperate translation file for this directory however, rather1.23 + than being forced to merge it with that of any program linked to1.24 + libopcodes. This is a library, so it cannot depend on the catalog1.25 + currently loaded.1.26 +1.27 + In order to do this, we have to make sure that when we extract messages we1.28 + use the OPCODES domain rather than the domain of the program that included1.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_noop1.33 +# define N_(String) gettext_noop (String)1.34 +# else1.35 +# define N_(String) (String)1.36 +# endif1.37 +#else1.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
.