diff options
author | Robin Gareus <robin@gareus.org> | 2013-10-23 20:02:30 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-10-23 20:02:30 +0200 |
commit | a4b6a4f8bbc475f7bf26b96c2a0be093b42452a1 (patch) | |
tree | b9533665089632fd9f39b33c09bbc9a970b8f673 /tools/nofuzz.sh | |
parent | 4316eda89f4a7ef4665e94d9ea44a544d6c7f95b (diff) |
add script to clean up translations
Diffstat (limited to 'tools/nofuzz.sh')
-rwxr-xr-x | tools/nofuzz.sh | 14 |
1 files changed, 14 insertions, 0 deletions
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 |