417dc09309ea89f977ec366af0de34feb965e696
[yaffs-website] / vendor / lsolesen / pel / update-locales.sh
1 #!/bin/sh
2 #
3 #  PEL: PHP Exif Library.  A library with support for reading and
4 #  writing all Exif headers in JPEG and TIFF images using PHP.
5 #
6 #  Copyright (C) 2004  Martin Geisler.
7 #
8 #  This program is free software; you can redistribute it and/or modify
9 #  it under the terms of the GNU General Public License as published by
10 #  the Free Software Foundation; either version 2 of the License, or
11 #  (at your option) any later version.
12 #
13 #  This program is distributed in the hope that it will be useful,
14 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 #  GNU General Public License for more details.
17 #
18 #  You should have received a copy of the GNU General Public License
19 #  along with this program in the file COPYING; if not, write to the
20 #  Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
21 #  Boston, MA 02110-1301 USA
22
23 # $Id$
24
25
26 # This script will generate the binary MO files from the PO files
27 # found in the po subdirectory.
28
29 cd po
30 echo -n "Generating MO files... "
31 for lang in *.po; do
32     dir=../locale/${lang%.po}/LC_MESSAGES
33     mkdir -p $dir
34     msgfmt --output-file $dir/pel.mo $lang
35 done
36 echo "done."
37 cd ..