2010-12-11 18:45:06 +02:00
|
|
|
#!/bin/bash
|
|
|
|
# Run this script from current directory to update translation template, which will be written to "po/gladish.pot"
|
|
|
|
# Note: you don't need to use it if you are not a developer
|
|
|
|
|
|
|
|
POTFILE="po/gladish.pot"
|
|
|
|
|
|
|
|
xgettext --keyword=_ -o "$POTFILE" gui/*.c gui/*.cpp
|
|
|
|
xgettext -j -L Glade -o "$POTFILE" gui/gladish.ui
|
|
|
|
|
2010-12-18 22:32:54 +02:00
|
|
|
for PO_FILE in "`ls -1 po/*.po`"; do
|
|
|
|
msgmerge -U "$PO_FILE" "$POTFILE"
|
|
|
|
done
|