summaryrefslogtreecommitdiff
path: root/opcodes/opintl.h
AgeCommit message (Collapse)Author
2018-01-03Update year range in copyright notice of binutils filesAlan Modra
2017-11-07ngettext supportAlan Modra
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-01-02Update year range in copyright notice of all files.Alan Modra
2016-01-01Copyright update for binutilsAlan Modra
2015-08-12Remove trailing spaces in opcodesH.J. Lu
2015-01-02ChangeLog rotatation and copyright year updateAlan Modra
2014-03-05Update copyright yearsAlan Modra
2009-09-02update copyright datesAlan Modra
2007-07-05Change source files over to GPLv3.Nick Clifton
2005-05-07Update the address and phone number of the FSFNick Clifton
2001-03-13Fix typos in ChangeLogs; fix dates in copyright noticesNick Clifton
2000-05-31Add comment describoing why dgettext() is used in _() macro.Nick Clifton
2000-05-30Undo part of previous delta, so that _() calls dgettext() not gettext().Nick Clifton
2000-05-30Replace defines with those from intl/libgettext.h to quieten gcc warnings.Nick Clifton
1999-05-0319990502 sourceware importRichard Henderson