source: tests/scripts/checkpo.sh @ 3ec6028

Last change on this file since 3ec6028 was 3ec6028, checked in by zzz <zzz@…>, 8 years ago
  • Translations: Move country names to a new resource bundle
  • Property mode set to 100755
File size: 791 bytes
Line 
1#!/bin/sh
2#
3# Run 'msgfmt -c' on all .po files
4# Returns nonzero on failure
5#
6# zzz 2011-02
7# public domain
8#
9
10cd `dirname $0`/../..
11
12DIRS="\
13  apps/routerconsole/locale \
14  apps/routerconsole/locale-news \
15  apps/routerconsole/locale-countries \
16  apps/i2ptunnel/locale \
17  apps/i2ptunnel/locale-proxy \
18  apps/i2psnark/locale \
19  apps/susidns/locale \
20  apps/susimail/locale \
21  apps/desktopgui/locale \
22  installer/resources/locale/po \
23  debian/po"
24
25for i in `find $DIRS -maxdepth 1 -type f -name *.po`
26do
27        echo "Checking $i ..."
28        msgfmt -c $i -o /dev/null
29        if [ $? -ne 0 ]
30        then
31                echo "********* FAILED CHECK FOR $i *************"
32                FAIL=1
33        fi
34done
35
36if [ "$FAIL" != "" ]
37then
38        echo "******** At least one file failed check *********"
39else
40        echo "All files passed"
41fi
42exit $FAIL
Note: See TracBrowser for help on using the repository browser.