summary refs log tree commit diff
path: root/po/Makefile
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2020-01-17 22:49:33 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2020-01-19 10:45:50 +0530
commitafbfe2d963a93dca25eba723003a1c8bf4297a36 (patch)
treee17a0bc04183e1ce2837f498fe0b386c6d1ac8bc /po/Makefile
parent35869b85312137865735785187a2b4214d069e8d (diff)
downloadglibc-afbfe2d963a93dca25eba723003a1c8bf4297a36.tar.gz
glibc-afbfe2d963a93dca25eba723003a1c8bf4297a36.tar.xz
glibc-afbfe2d963a93dca25eba723003a1c8bf4297a36.zip
translations: Trim po files using msgattrib
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.
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile4
1 files changed, 3 insertions, 1 deletions
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