Source

gSharkDown / update_language_template.sh

#!/bin/bash
intltool-extract --type=gettext/glade data/about_dialog.ui 
intltool-extract --type=gettext/glade data/lyrics_dialog.ui
intltool-extract --type=gettext/glade data/main_window.ui
intltool-extract --type=gettext/glade data/preferenes_dialog.ui
xgettext --keyword=_ --keyword=N_ --language=Python --output=gsharkdown.pot data/about_dialog.ui.h data/lyrics_dialog.ui.h data/main_window.ui.h data/preferenes_dialog.ui.h gsharkdown.py lib/guihelpers.py lib/tfuncs.py

for f in $(ls locale)
do
	msgmerge -U "./locale/$f/LC_MESSAGES/gsharkdown.po" gsharkdown.pot
done

echo "Translations updated"