Changeset View
Changeset View
Standalone View
Standalone View
trunk/l10n-kde4/scripts/check_po_files
Context not available. | |||||
5 | 5 | | |||
---|---|---|---|---|---|
6 | # This script checks the PO files with the help of Gettext's msgfmt tool | 6 | # This script checks the PO files with the help of Gettext's msgfmt tool | ||
7 | 7 | | |||
8 | OLD_PWD=$PWD | ||||
9 | cd $(dirname $0) | ||||
10 | SCRIPTY_DIR=$PWD | ||||
11 | cd $OLD_PWD | ||||
12 | | ||||
8 | if test -f subdirs; then | 13 | if test -f subdirs; then | ||
9 | for lang in `cat subdirs`; do | 14 | for lang in `cat subdirs`; do | ||
10 | # Note: we do not use 'cd' here, to allow msgfmt to generate errors and warnings with paths containing the language code | 15 | # Note: we do not use 'cd' here, to allow msgfmt to generate errors and warnings with paths containing the language code | ||
11 | 16 | | |||
12 | if test -f $lang/messages/kdelibs/kdelibs4.po; then | 17 | if test -f $lang/messages/kdelibs/kdelibs4.po; then | ||
13 | find $lang -name *.po | xargs perl scripts/change-header.pl $lang/messages/kdelibs/kdelibs4.po | 18 | find $lang -name *.po | xargs perl $SCRIPTY_DIR/change-header.pl $lang/messages/kdelibs/kdelibs4.po | ||
14 | fi | 19 | fi | ||
15 | 20 | | |||
16 | # Check all PO files with Gettext's msgfmt | 21 | # Check all PO files with Gettext's msgfmt | ||
Context not available. | |||||
25 | fi | 30 | fi | ||
26 | done | 31 | done | ||
27 | 32 | | |||
28 | perl scripts/check_desktop_files | 33 | perl $SCRIPTY_DIR/check_desktop_files | ||
29 | else | 34 | else | ||
30 | echo "ERROR: could not find the subdirs file! (Wrong directory?)" | 35 | echo "ERROR: could not find the subdirs file! (Wrong directory?)" | ||
31 | fi | 36 | fi | ||
Context not available. |