unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] translations: Trim po files using msgattrib
@ 2020-01-17 17:22 Siddhesh Poyarekar
  0 siblings, 0 replies; only message in thread
From: Siddhesh Poyarekar @ 2020-01-17 17:22 UTC (permalink / raw)
  To: libc-alpha; +Cc: carlos, digitalfreak

The translation project coordinator Benno Schulenberg suggested that
we could save space in our tarball by trimming the generated po files
by using msgattrib and dropping all untranslated, fuzzy and obsolete
messages.  This patch updates the update-translations target to do
that.  Testing indicates that the current po files reduce by over 65K
lines due to this trimming.
---
 po/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/po/Makefile b/po/Makefile
index 882a54b025..43abf1ec7b 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -99,5 +99,7 @@ update-translations:
 	    $(WGET) -O $(objdir)/$$f-tmp2 $(TRANSLATIONS_URL)/$$f && \
 	    msgmerge --previous --no-wrap $(objdir)/$$f-tmp2 libc.pot > \
 	      $(objdir)/$$f-tmp && \
-	    mv -f $(objdir)/$$f-tmp $$f; \
+	    msgattrib --translated --no-fuzzy --no-obsolete --no-wrap \
+	      $(objdir)/$$f-tmp > $(objdir)/$$f-tmp0 && \
+	    mv -f $(objdir)/$$f-tmp0 $$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:23 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:22 [PATCH] translations: Trim po files using msgattrib 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).