]> git.p6c8.net - jirafeau_mojo42.git/blob - update-mo.sh
00d4d17a428614fdb23709709079427fc65afc97
[jirafeau_mojo42.git] / update-mo.sh
1 #!/bin/sh
2 #
3 # Jyraphe, your web file repository
4 # Copyright (C) 2008 Julien "axolotl" BERNARD <axolotl@magieeternelle.org>
5 #
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU Affero General Public License as
8 # published by the Free Software Foundation, either version 3 of the
9 # License, or (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU Affero General Public License for more details.
15 #
16 # You should have received a copy of the GNU Affero General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #
19
20 WD="`dirname $0`"
21
22 PACKAGE=Jyraphe
23 POT="${WD}/l10n/${PACKAGE}.pot"
24
25 for PO in `ls ${WD}/l10n/po/*.po`
26 do
27 LANG=`basename "${PO}" | sed 's/.po//'`
28 mkdir -p "${WD}/pub/lib/locale/${LANG}/LC_MESSAGES/"
29 msgfmt -o "${WD}/pub/lib/locale/${LANG}/LC_MESSAGES/${PACKAGE}.mo" "${PO}"
30 done

patrick-canterino.de