Files
i2p.i2p/tests/scripts/checkpo.sh
zzz 71038c311f * Translations:
- New varargs method in Translate
   - New TranslateReader to translate static files on-the-fly using _("") tagging
   - Tag proxy error pages for TranslateReader
   - Drop static translated proxy error pages
   - Add new i2ptunnel bundle for the proxy alone, shipped in the jar
   - Use TranslateReader in HTTP proxy for error pages
   - Move HTTP proxy strings from the web *war) to proxy (jar) bundle so they will be loaded
   - Initial translations created by msgmerge from i2ptunnel and routerconsole po files, un-fuzzied
2013-07-13 19:58:11 +00:00

40 lines
706 B
Bash
Executable File

#
# Run 'msgfmt -c' on all .po files
# Returns nonzero on failure
#
# zzz 2011-02
# public domain
#
cd `dirname $0`/../..
DIRS="\
apps/routerconsole/locale \
apps/i2ptunnel/locale \
apps/i2ptunnel/locale-proxy \
apps/i2psnark/locale \
apps/susidns/locale \
apps/susimail/locale \
apps/desktopgui/locale \
installer/resources/locale/po \
debian/po"
for i in `find $DIRS -maxdepth 1 -type f -name *.po`
do
echo "Checking $i ..."
msgfmt -c $i -o /dev/null
if [ $? -ne 0 ]
then
echo "********* FAILED CHECK FOR $i *************"
FAIL=1
fi
done
if [ "$FAIL" != "" ]
then
echo "******** At least one file failed check *********"
else
echo "All files passed"
fi
exit $FAIL