File gqview-editors-po-update.sh of Package gqview
#! /bin/bash
# Update translations of editor application names using their original packages.
# Script may require changes depending on source repository tools.
# Author: Stanislav Brabec <sbrabec@suse.cz>, SuSE Linux
cd po
intltool-update --pot -o gqview.pot
for DTRAN in /usr/share/locale/*/LC_MESSAGES/desktop_translations.mo ; do
LNG=${DTRAN#/usr/share/locale/}
LNG=${LNG%/LC_MESSAGES/desktop_translations.mo}
msgunfmt $DTRAN | sed 's/"Name(\(gimp\|krita\|eog\|gwenview\|xv\)\.desktop): /"/' >${LNG}_upd.po
if test -f $LNG.po ; then
msgmerge\
--compendium=${LNG}_upd.po\
$LNG.po gqview.pot -o $LNG.po.new
mv $LNG.po.new $LNG.po
fi
done