author | mellen <mellen> | 2003-02-27 00:12:21 (UTC) |
---|---|---|
committer | mellen <mellen> | 2003-02-27 00:12:21 (UTC) |
commit | 01ef662a6bb0c4ac81d1314bea286d832e893bbe (patch) (unidiff) | |
tree | a9d9542f0dbc5219ee15505037178a35e4cc5652 /i18n/status.sh | |
parent | 73c645c01998e8e2ca493713801bd07406880de8 (diff) | |
download | opie-01ef662a6bb0c4ac81d1314bea286d832e893bbe.zip opie-01ef662a6bb0c4ac81d1314bea286d832e893bbe.tar.gz opie-01ef662a6bb0c4ac81d1314bea286d832e893bbe.tar.bz2 |
- Added option 'unfinished' to make the script only display ts-files with unfinished strings.
- Fixed a couple of typos.
-rwxr-xr-x | i18n/status.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/i18n/status.sh b/i18n/status.sh index f7fa219..216523b 100755 --- a/i18n/status.sh +++ b/i18n/status.sh | |||
@@ -2,6 +2,9 @@ | |||
2 | lang=`basename ${1} 2>/dev/null | tr -d '/'` | 2 | lang=`basename ${1} 2>/dev/null | tr -d '/'` |
3 | [ "x${2}x" = "xunfinishedx" ] && unfinishedonly=y | ||
3 | 4 | ||
4 | if [ "x${lang}x" = "xx" ]; then | 5 | if [ "x${lang}x" = "xx" ]; then |
5 | echo "Usage: `basename ${0}` XX" | 6 | echo "Usage: `basename ${0}` <XX> [unfinished]" |
6 | echo " with XX as a languagecode or \"all\" for all languagecodes." | 7 | echo " with <XX> as a languagecode or \"all\" for all languagecodes." |
8 | echo " If you specify 'unfinished' after the languagecode," | ||
9 | echo " only ts-files with unfinished strings will be shown." | ||
7 | exit 1 | 10 | exit 1 |
@@ -11,3 +14,3 @@ else | |||
11 | clear | 14 | clear |
12 | printf "\ni18n Statistics for ALL languagecode\n" | 15 | printf "\ni18n Statistics for ALL languagecodes\n" |
13 | lang="." | 16 | lang="." |
@@ -20,3 +23,3 @@ else | |||
20 | if [ ! -d "${lang}" ]; then | 23 | if [ ! -d "${lang}" ]; then |
21 | echo "Specified languagecode not avaiable." | 24 | echo "Specified languagecode not available." |
22 | exit 1 | 25 | exit 1 |
@@ -34,3 +37,5 @@ else | |||
34 | obso=`grep -c 'type=\"obsolete\"' ${file}` | 37 | obso=`grep -c 'type=\"obsolete\"' ${file}` |
35 | printf "%3s %3s %3s %s\n" "${strs}" "${unfi}" "${obso}" "${file}" | 38 | if [ ${unfi} -gt 0 -o "x${unfinishedonly}x" = "xx" ]; then |
39 | printf "%3s %3s %3s %s\n" "${strs}" "${unfi}" "${obso}" "${file}" | ||
40 | fi | ||
36 | done | 41 | done |