Changeset View
Changeset View
Standalone View
Standalone View
branches/stable/l10n-kf5-plasma-lts/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. | |||||
43 | fi | 48 | fi | ||
44 | done | 49 | done | ||
45 | 50 | | |||
46 | perl scripts/check_desktop_files | 51 | perl $SCRIPTY_DIR/check_desktop_files | ||
47 | else | 52 | else | ||
48 | echo "ERROR: could not find the subdirs file! (Wrong directory?)" | 53 | echo "ERROR: could not find the subdirs file! (Wrong directory?)" | ||
49 | fi | 54 | fi | ||
Context not available. |