ac116bd659
These were inadvertently lost during the conversion to Gnulib (gnulib:
Upgrade Gnulib and switch to bootstrap tool; commit 35b909062
). The
files in po/gettext-patches/ can be imported using "git am" on top of
the gettext tag corresponding to AM_GNU_GETTEXT_VERSION in configure.ac
(currently 0.18.3). They handle translation of messages in shell files,
make msgfmt output in little-endian format, and arrange to use @SHELL@
rather than /bin/sh.
There were some changes solely for the purpose of distributing extra
files; for ease of maintenance, I've added these to
conf/Makefile.extra-dist instead.
Fixes: https://savannah.gnu.org/bugs/?57298
Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
34 lines
1.4 KiB
Diff
34 lines
1.4 KiB
Diff
From 156c523e2945c9b43c5500fb93988b0dd2f08d75 Mon Sep 17 00:00:00 2001
|
|
From: Vladimir Serbinenko <phcoder@gmail.com>
|
|
Date: Sun, 1 Mar 2020 12:09:25 +0000
|
|
Subject: [PATCH 3/4] Make msgfmt output in little-endian
|
|
|
|
GRUB expects this.
|
|
---
|
|
gettext-runtime/po/Makefile.in.in | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/gettext-runtime/po/Makefile.in.in b/gettext-runtime/po/Makefile.in.in
|
|
index 32e0c99a2..f3ef54c39 100644
|
|
--- a/gettext-runtime/po/Makefile.in.in
|
|
+++ b/gettext-runtime/po/Makefile.in.in
|
|
@@ -84,13 +84,13 @@ CATALOGS = @CATALOGS@
|
|
|
|
.po.mo:
|
|
@echo "$(MSGFMT) -c -o $@ $<"; \
|
|
- $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
|
|
+ $(MSGFMT) --endianness=little -c -o t-$@ $< && mv t-$@ $@
|
|
|
|
.po.gmo:
|
|
@lang=`echo $* | sed -e 's,.*/,,'`; \
|
|
test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
|
|
- echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \
|
|
- cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
|
|
+ echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) --endianness=little -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \
|
|
+ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) --endianness=little -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
|
|
|
|
.sin.sed:
|
|
sed -e '/^#/d' $< > t-$@
|
|
--
|
|
2.17.1
|
|
|