From: Alan Modra Date: Sun, 25 Jan 2026 22:02:35 +0000 (+1030) Subject: Hard-coded plural in readelf.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=795593e667b00334e7b3fa8b11ea0e844e01b5af;p=thirdparty%2Fbinutils-gdb.git Hard-coded plural in readelf.c PR 33837 * readelf.c (process_got_section_contents): Use ngettext. --- diff --git a/binutils/readelf.c b/binutils/readelf.c index cca294c968c..f50d9281ea4 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -21589,12 +21589,12 @@ process_got_section_contents (Filedata * filedata) } entries = section->sh_size / entsz; - if (entries == 1) - printf (_("\nGlobal Offset Table '%s' contains 1 entry:\n"), - name); - else - printf (_("\nGlobal Offset Table '%s' contains %" PRIu64 - " entries:\n"), name, entries); + printf (ngettext ("\nGlobal Offset Table '%s' contains %" PRIu64 + " entry:\n", + "\nGlobal Offset Table '%s' contains %" PRIu64 + " entries:\n", + entries), + name, entries); uint64_t g;