diff --git a/po/README b/po/README index cd2c9ec12..a2a5dcf00 100644 --- a/po/README +++ b/po/README @@ -1,2 +1,4 @@ When you commit a translation, please strip the #: lines before. This -makes it much easier to view diffs. +makes it much easier to view diffs. Example: + + ./strip-location *.po diff --git a/po/strip-location.sh b/po/strip-location.sh new file mode 100755 index 000000000..7984bd84d --- /dev/null +++ b/po/strip-location.sh @@ -0,0 +1,8 @@ +#! /bin/sh +set -e + +for i in "$@"; do + i="./$i" + sed '/^#:/d' < "$i" > "$i.tmp" + mv -f "$i.tmp" "$i" +done