mirror of
https://bitbucket.org/smil3y/katana.git
synced 2025-02-23 18:32:47 +00:00
kdeqt.sh: new script for updating the kdeqt translations
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d038886b98
commit
f710b42a53
1 changed files with 22 additions and 0 deletions
22
kdeqt.sh
Executable file
22
kdeqt.sh
Executable file
|
@ -0,0 +1,22 @@
|
||||||
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
pot="$HOME/Katie/translations/qt.pot"
|
||||||
|
|
||||||
|
if [ ! -e "$pot" ]; then
|
||||||
|
echo "Could not find the Katie pot"
|
||||||
|
exit 1
|
||||||
|
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
|
||||||
|
|
||||||
|
name="kdeqt.po"
|
||||||
|
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
|
Loading…
Add table
Reference in a new issue