From patchwork Fri Jan 17 17:22:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 37424 Received: (qmail 91942 invoked by alias); 17 Jan 2020 17:23:01 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 91921 invoked by uid 89); 17 Jan 2020 17:23:00 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_NEUTRAL autolearn=ham version=3.3.1 spammy=coordinator, 65k, benno, HX-Languages-Length:981 X-HELO: butterfly.birch.relay.mailchannels.net X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|siddhesh@gotplt.org X-MailChannels-Auth-Id: dreamhost X-Spot-Slimy: 4a75797e4efd6b5a_1579281767335_2371853016 X-MC-Loop-Signature: 1579281767335:1180841494 X-MC-Ingress-Time: 1579281767335 X-DH-BACKEND: pdx1-sub0-mail-a9 From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Cc: carlos@redhat.com, digitalfreak@lingonborough.com Subject: [PATCH] translations: Trim po files using msgattrib Date: Fri, 17 Jan 2020 22:52:23 +0530 Message-Id: <20200117172223.111067-1-siddhesh@sourceware.org> MIME-Version: 1.0 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrtdekgddtiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuihguughhvghshhcurfhohigrrhgvkhgrrhcuoehsihguughhvghshhesshhouhhrtggvfigrrhgvrdhorhhgqeenucfkphepuddvfedrvdehvddrvddtvddrudejvdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghloheplhhinhgrrhhoqdhlrghpthhophdrihhnthhrrgdrrhgvshgvrhhvvgguqdgsihhtrdgtohhmpdhinhgvthepuddvfedrvdehvddrvddtvddrudejvddprhgvthhurhhnqdhprghthhepufhiugguhhgvshhhucfrohihrghrvghkrghruceoshhiugguhhgvshhhsehsohhurhgtvgifrghrvgdrohhrgheqpdhmrghilhhfrhhomhepshhiugguhhgvshhhsehsohhurhgtvgifrghrvgdrohhrghdpnhhrtghpthhtohepughighhithgrlhhfrhgvrghksehlihhnghhonhgsohhrohhughhhrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd 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