Updated update-po to use the new GtkBuilder .ui file
[rox-filer.git] / ROX-Filer / src / po / update-po
blob84209149b3c97973da6ceaf1a995a396e07046b4
1 #!/bin/sh
3 echo Extracting messages from source files...
4 echo
6 (cd ..; python po/tips.py &&
7 intltool-extract --type=gettext/glade --update ../Templates.ui &&
8 xgettext --keyword=_ --keyword=N_ --output=messages.pot *.c tips ../Templates.ui.h)
10 echo
12 if [ "x$1" = "x" ]; then
13 echo Updating all .po files...
14 echo
16 for FILE in *.po; do
17 echo -n "Updating '$FILE' translation"
18 mv "$FILE" "$FILE.old"
19 msgmerge "$FILE.old" ../messages.pot > "$FILE";
20 rm "$FILE.old"
21 done
22 else
23 FILE="$1"
24 if [ ! -f "$FILE" ]; then
25 echo $FILE does not exist!
26 exit 1
28 echo Updating all $1...
29 echo
31 echo -n "Updating '$FILE' translation"
32 mv "$FILE" "$FILE.old"
33 msgmerge "$FILE.old" ../messages.pot > "$FILE";
34 rm "$FILE.old"