mirror of
https://bitbucket.org/smil3y/katana.git
synced 2025-02-23 02:12:48 +00:00
pormerge.sh: remove obsolete translations after merge
This commit is contained in:
parent
52b7d2ec44
commit
9eca9f9460
1 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,9 @@ if [ -z "$pot" ];then
|
|||
elif ! type -p msgmerge ;then
|
||||
echo "msgmerge is not in your PATH"
|
||||
exit 1
|
||||
elif ! type -p msgattrib ;then
|
||||
echo "msgattrib is not in your PATH"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
source "$(dirname $0)/fetch.sh"
|
||||
|
@ -19,6 +22,8 @@ name="$(basename $pot | sed 's|.pot|.po|g')"
|
|||
for p in $(find kde-l10n/ -name "$name");do
|
||||
echo "Updating $p..."
|
||||
msgmerge --update --no-fuzzy-matching "$p" "$pot"
|
||||
echo "Cleaning up $p..."
|
||||
msgattrib --no-obsolete "$p" -o "$p"
|
||||
done
|
||||
|
||||
echo "All done."
|
||||
|
|
Loading…
Add table
Reference in a new issue