From: Siddhesh Poyarekar Date: Fri, 17 Jan 2020 17:19:33 +0000 (+0530) Subject: translations: Trim po files using msgattrib X-Git-Tag: glibc-2.31~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afbfe2d963a93dca25eba723003a1c8bf4297a36;p=thirdparty%2Fglibc.git 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. --- diff --git a/po/Makefile b/po/Makefile index 882a54b0256..43abf1ec7bc 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