Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 20 lines (15 sloc) 0.368 kB
05b3045 @ozten Extracting module from github.com/mozilla/browserid
ozten authored
1 #!/bin/bash
2
3 # syntax:
4 # compile-mo.sh locale-dir/
5
6 function usage() {
7 echo "syntax:"
8 echo "compile.sh locale-dir/"
9 exit 1
10 }
11
12 # check if file and dir are there
13 if [[ ($# -ne 1) || (! -d "$1") ]]; then usage; fi
14
15 for lang in `find $1 -type f -name "*.po"`; do
16 dir=`dirname $lang`
17 stem=`basename $lang .po`
18 msgfmt -o ${dir}/${stem}.mo $lang
19 done
Something went wrong with that request. Please try again.