From 33589acbfea909ca2a26b977ff2f672332990747 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 24 Feb 2018 18:50:21 +1030 Subject: ld message translation for emultempl and emulparams Most of the emultempl/*.em error/warning messages do not currently appear in ld.pot, and fixing that is not simply a matter of adding missing files to POTFILES. The difficulty is the shell-script quoting, for example aarch64elf.em:PARSE_AND_LIST_OPTIONS "Don'\''t". I suppose you could avoid contractions like "don't" but I'm unsure as to whether gettext could handle everything in the emulparams scripts. The right thing to do is feed the generated C files to gettext, as this patch does. The patch just copies what is already done in bfd/ for generated files. * Makefile.am (EMULATION_FILES, POTFILES): Delete. (SRC_POTFILES, BLD_POTFILES): Define. (po/POTFILES.in): Delete rule. (po/SRC-POTFILES.in, po/BLD-POTFILES.in): New rules. * configure.ac: Add AC_CONFIG_COMMANDS to create po/Makefile. * po/Make-in (DISTFILES): Remove POTFILES.in, add SRC-POTFILES.in and BLD-POTFILES.in. (POTFILES): Delete. (SRC-POTFILES, BLD-POTFILES): Define place marker. (ld.pot): Build from SRC-POTFILES plus BLD-POTFILES. (distclean, maintainer-clean): Tidy up new files. (POTFILES, POTFILES.in): Delete rules. (SRC-POTFILES, BLD-POTFILES, SRC-POTFILES.in, BLD-POTFILES.in): New rules. (Makefile): Depend on SRC-POTFILES and BLD-POTFILES. * po/SRC-POTFILES.in: Rename from po/POTFILES.in. * po/BLD-POTFILES.in: New file. * Makefile.in: Regenerate. * configure: Regenerate. --- ld/po/SRC-POTFILES.in | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 ld/po/SRC-POTFILES.in (limited to 'ld/po/SRC-POTFILES.in') diff --git a/ld/po/SRC-POTFILES.in b/ld/po/SRC-POTFILES.in new file mode 100644 index 0000000..1628826 --- /dev/null +++ b/ld/po/SRC-POTFILES.in @@ -0,0 +1,35 @@ +deffile.h +elf-hints-local.h +ld.h +ldbuildid.c +ldbuildid.h +ldcref.c +ldctor.c +ldctor.h +ldemul.c +ldemul.h +ldexp.c +ldexp.h +ldfile.c +ldfile.h +ldlang.c +ldlang.h +ldlex-wrapper.c +ldlex.h +ldmain.c +ldmain.h +ldmisc.c +ldmisc.h +ldver.c +ldver.h +ldwrite.c +ldwrite.h +lexsup.c +mri.c +mri.h +pe-dll.c +pe-dll.h +pep-dll.c +pep-dll.h +plugin.c +plugin.h -- cgit v1.1