mirror of
https://bitbucket.org/smil3y/katana.git
synced 2025-02-23 10:22:46 +00:00
25 lines
416 B
Bash
25 lines
416 B
Bash
![]() |
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
pot="$1"
|
||
|
packs=("kde-l10n")
|
||
|
cwd="$(pwd)"
|
||
|
if [ -z "$pot" ];then
|
||
|
echo "Pass a path to .pot"
|
||
|
exit 1
|
||
|
elif ! type -p msgmerge ;then
|
||
|
echo "msgmerge is not in your PATH"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
source "$(dirname $0)/fetch.sh"
|
||
|
|
||
|
name="$(basename $pot | sed 's|.pot|.po|g')"
|
||
|
for p in $(find kde-l10n/ -name "$name");do
|
||
|
echo "Updating $p..."
|
||
|
msgmerge --update "$p" "$pot"
|
||
|
done
|
||
|
|
||
|
echo "All done."
|