From a4b6a4f8bbc475f7bf26b96c2a0be093b42452a1 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 23 Oct 2013 20:02:30 +0200 Subject: [PATCH] add script to clean up translations --- tools/nofuzz.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 tools/nofuzz.sh diff --git a/tools/nofuzz.sh b/tools/nofuzz.sh new file mode 100755 index 0000000000..cf0a1ac8aa --- /dev/null +++ b/tools/nofuzz.sh @@ -0,0 +1,14 @@ +#!/bin/sh +## this script should be run from the top-level source dir +## it remove all fuzzy and obsolte translations and wraps +## long lines. +## +## update .po and .pot files: + ./waf i18n_pot + +TEMPFILE=`mktemp` +for file in `git ls-files | grep -e '.po$'`; do + cp $file $TEMPFILE + msgattrib -o $file --no-fuzzy --no-obsolete $TEMPFILE +done +rm $TEMPFILE