binutils-gdb/bfd/hosts
Alan Modra 6003e27e76 ngettext support
binutils has lacked proper pluralization of output messages for a long
time, for example, readelf will display information about a section
that "contains 1 entries" or "There are 1 section headers".  Fixing
this properly requires us to use ngettext, because other languages
have different rules to English.

This patch defines macros for ngettext and friends to handle builds
with --disable-nls, and tidies the existing nls support.  I've
redefined gettext rather than just defining "_" as dgettext in bfd and
opcodes in case someone wants to use gettext there (which might
conceivably happen with generated code).

bfd/
	* sysdep.h: Formatting, comment fixes.
	(gettext, ngettext): Redefine when ENABLE_NLS.
	(ngettext, dngettext, dcngettext): Define when !ENABLE_NLS.
	(_): Define using gettext.
	(textdomain, bindtextdomain): Use safer "do nothing".
	* hosts/alphavms.h (textdomain, bindtextdomain): Likewise.
	(ngettext, dngettext, dcngettext): Define when !ENABLE_NLS.
opcodes/
	* opintl.h: Formatting, comment fixes.
	(gettext, ngettext): Redefine when ENABLE_NLS.
	(ngettext, dngettext, dcngettext): Define when !ENABLE_NLS.
	(_): Define using gettext.
	(textdomain, bindtextdomain): Use safer "do nothing".
binutils/
	* sysdep.h (textdomain, bindtextdomain): Use safer "do nothing".
	(ngettext, dngettext, dcngettext): Define when !ENABLE_NLS.
gas/
	* asintl.h (textdomain, bindtextdomain): Use safer "do nothing".
	(ngettext, dngettext, dcngettext): Define when !ENABLE_NLS.
gold/
	* system.h (textdomain, bindtextdomain): Use safer "do nothing".
	(ngettext, dngettext, dcngettext): Define when !ENABLE_NLS.
ld/
	* ld.h (textdomain, bindtextdomain): Use safer "do nothing".
	(ngettext, dngettext, dcngettext): Define when !ENABLE_NLS.
2017-11-07 15:52:52 +10:30
..
alphalinux.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
alphavms.h ngettext support 2017-11-07 15:52:52 +10:30
decstation.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
delta68.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
dpx2.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
hp300bsd.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
i386bsd.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
i386linux.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
i386mach3.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
i386sco.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
i860mach3.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
m68kaux.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
m68klinux.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
m88kmach3.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
mipsbsd.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
mipsmach3.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
news-mips.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
news.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
pc532mach.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
riscos.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
symmetry.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
tahoe.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
vaxbsd.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
vaxlinux.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
vaxult2.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
vaxult.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
x86-64linux.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30