summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xi18n/status.sh15
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 @@
lang=`basename ${1} 2>/dev/null | tr -d '/'`
+[ "x${2}x" = "xunfinishedx" ] && unfinishedonly=y
if [ "x${lang}x" = "xx" ]; then
- echo "Usage: `basename ${0}` XX"
- echo " with XX as a languagecode or \"all\" for all languagecodes."
+ echo "Usage: `basename ${0}` <XX> [unfinished]"
+ echo " with <XX> as a languagecode or \"all\" for all languagecodes."
+ echo " If you specify 'unfinished' after the languagecode,"
+ echo " only ts-files with unfinished strings will be shown."
exit 1
@@ -11,3 +14,3 @@ else
clear
- printf "\ni18n Statistics for ALL languagecode\n"
+ printf "\ni18n Statistics for ALL languagecodes\n"
lang="."
@@ -20,3 +23,3 @@ else
if [ ! -d "${lang}" ]; then
- echo "Specified languagecode not avaiable."
+ echo "Specified languagecode not available."
exit 1
@@ -34,3 +37,5 @@ else
obso=`grep -c 'type=\"obsolete\"' ${file}`
- printf "%3s %3s %3s %s\n" "${strs}" "${unfi}" "${obso}" "${file}"
+ if [ ${unfi} -gt 0 -o "x${unfinishedonly}x" = "xx" ]; then
+ printf "%3s %3s %3s %s\n" "${strs}" "${unfi}" "${obso}" "${file}"
+ fi
done