* [PATCH] translations: Run msgmerge when downloading translations
@ 2020-01-17 17:10 Siddhesh Poyarekar
0 siblings, 0 replies; only message in thread
From: Siddhesh Poyarekar @ 2020-01-17 17:10 UTC (permalink / raw)
To: libc-alpha; +Cc: carlos, digitalfreak
The latest translations in the translationproject URL need to be
merged in using msgmerge for the po files to be correctly updated,
otherwise we may end up getting odd results, such as the previous
translations update. This patch adds another step to the
update-translations Makefile target which does a msgmerge of the
downloaded po file with libc.pot and then uses that as the final
result.
---
po/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/po/Makefile b/po/Makefile
index ce12e1dd5b..882a54b025 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -97,6 +97,7 @@ update-translations:
$(WGET) -qO- $(TRANSLATIONS_URL) | sed -n 's|.*href="\([^"]\+po\)".*|\1|p' | \
while read f; do \
$(WGET) -O $(objdir)/$$f-tmp2 $(TRANSLATIONS_URL)/$$f && \
- msgmerge $$f-tmp2 libc.pot > $$ff-tmp && \
+ msgmerge --previous --no-wrap $(objdir)/$$f-tmp2 libc.pot > \
+ $(objdir)/$$f-tmp && \
mv -f $(objdir)/$$f-tmp $$f; \
done
--
2.24.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-17 17:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-17 17:10 [PATCH] translations: Run msgmerge when downloading translations Siddhesh Poyarekar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).