You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
517 B
Bash
17 lines
517 B
Bash
#!/bin/bash
|
|
|
|
# Run this script from current directory to update translations
|
|
# and translation template, which will be written to "po/gladish.pot"
|
|
#
|
|
# Note: you don't need to use it if you are not a developer, excepting case
|
|
# when you have an old translation and want to update it (put it to 'po' directory first)
|
|
|
|
POTFILE="po/gladish.pot"
|
|
|
|
xgettext --keyword=_ -o "$POTFILE" gui/*.c gui/*.cpp
|
|
xgettext -j -L Glade -o "$POTFILE" gui/gladish.ui
|
|
|
|
for PO_FILE in po/*.po; do
|
|
msgmerge -N -U "$PO_FILE" "$POTFILE"
|
|
done
|