4ac83fc6044f28b8e4f07a1aaad382ab1b772abf
[yaffs-website] / vendor / lsolesen / pel / update-pot.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 small script will update the pel.pot template file in the po
27 # directory so that it contains the all the strings used in PEL.
28
29 echo -n Extracting translatable strings...
30 xgettext --output=po/pel.pot \
31     --keyword=tra            \
32     --keyword=fmt            \
33     --flag=fmt:1:php-format  \
34     Pel*.php
35 echo done.
36
37 for po in po/*.po; do
38     echo -n Updating $po:
39     msgmerge -v -U $po po/pel.pot
40 done