Changeset View
Changeset View
Standalone View
Standalone View
trunk/l10n-kf5/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 | copy_plural_header() { | 13 | copy_plural_header() { | ||
9 | plural_master="$1" | 14 | plural_master="$1" | ||
10 | backup_path="$2" | 15 | backup_path="$2" | ||
Context not available. | |||||
17 | if test ! -f "$plural_master" ; then | 22 | if test ! -f "$plural_master" ; then | ||
18 | echo "Warning: Could not find file $plural_master to grab the plural formula from." | 23 | echo "Warning: Could not find file $plural_master to grab the plural formula from." | ||
19 | else | 24 | else | ||
20 | find $find_args | xargs perl scripts/change-header.pl "$plural_master" | 25 | find $find_args | xargs perl $SCRIPTY_DIR/change-header.pl "$plural_master" | ||
21 | fi | 26 | fi | ||
22 | } | 27 | } | ||
23 | 28 | | |||
Context not available. | |||||
45 | echo "*_qt.po files without X-Qt-Contexts: true" | 50 | echo "*_qt.po files without X-Qt-Contexts: true" | ||
46 | find `cat subdirs` -type f -name \*_qt.po -print | xargs grep -L "X-Qt-Contexts: true" | 51 | find `cat subdirs` -type f -name \*_qt.po -print | xargs grep -L "X-Qt-Contexts: true" | ||
47 | 52 | | |||
48 | perl scripts/check_desktop_files | 53 | perl $SCRIPTY_DIR/check_desktop_files | ||
49 | else | 54 | else | ||
50 | echo "ERROR: could not find the subdirs file! (Wrong directory?)" | 55 | echo "ERROR: could not find the subdirs file! (Wrong directory?)" | ||
51 | fi | 56 | fi | ||
Context not available. |