source: tests/scripts/checkpo.sh @ c1210b1

Last change on this file since c1210b1 was c1210b1, checked in by zzz <zzz@…>, 7 years ago
  • Translations:
    • Tag initialNews.xml for TranslateReader?
    • Drop static translated initialNews pages
    • Add new routerconsole bundle for the news alone, shipped in the jar
    • Use TranslateReader? in HTTP proxy for initial news
    • Initial translations created manually from translated xml filesx
    • Add translated proxy error pages and initial news to deletelist.txt TODO ar translation fails checkpo.sh
  • Property mode set to 100755
File size: 741 bytes
Line 
1#
2# Run 'msgfmt -c' on all .po files
3# Returns nonzero on failure
4#
5# zzz 2011-02
6# public domain
7#
8
9cd `dirname $0`/../..
10
11DIRS="\
12  apps/routerconsole/locale \
13  apps/routerconsole/locale-news \
14  apps/i2ptunnel/locale \
15  apps/i2ptunnel/locale-proxy \
16  apps/i2psnark/locale \
17  apps/susidns/locale \
18  apps/susimail/locale \
19  apps/desktopgui/locale \
20  installer/resources/locale/po \
21  debian/po"
22
23for i in `find $DIRS -maxdepth 1 -type f -name *.po`
24do
25        echo "Checking $i ..."
26        msgfmt -c $i -o /dev/null
27        if [ $? -ne 0 ]
28        then
29                echo "********* FAILED CHECK FOR $i *************"
30                FAIL=1
31        fi
32done
33
34if [ "$FAIL" != "" ]
35then
36        echo "******** At least one file failed check *********"
37else
38        echo "All files passed"
39fi
40exit $FAIL
Note: See TracBrowser for help on using the repository browser.