]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
translations: Trim po files using msgattrib
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Fri, 17 Jan 2020 17:19:33 +0000 (22:49 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Sun, 19 Jan 2020 05:15:50 +0000 (10:45 +0530)
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

index 882a54b0256f43c85097330263128214198aa1f4..43abf1ec7bca23bf607fdf5342d6033603cb2f96 100644 (file)
@@ -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