3 # Set to 'yes' if you want UTF-8 strings, then run 'dist'.
7 OUT
=..
/..
/Messages
/$1.gmo
9 if [ "$utf" = "yes" ]; then
10 # This code converts to UTF-8 format. Needed by Gtk+-2.0 at
11 # least, and may help with other versions.
12 charset
=`grep "charset=" $1.po | head -1 |\
13 sed 's/^.*charset=\(.*\)\\\n.*/\1/'`
14 echo Using charset
\'$charset\'
15 iconv -f $charset -t utf-8
$1.po | msgfmt
- -o $OUT &&
16 echo Created
file $OUT OK
18 # This does not convert to UTF-8. Use this to get the old
19 # behaviour. Gtk+-1.2.6 at least can't handle UTF-8 :-(
20 msgfmt
$1.po
-o $OUT && echo Created
file $OUT OK
26 Usage: 'make-mo <LANG>'
28 to compile the French translation, fr.po, ready for use.