aboutsummaryrefslogtreecommitdiffstats
path: root/chk-po
diff options
context:
space:
mode:
authorBarry Jackson <barjac@mageia.org>2023-01-11 23:11:44 +0000
committerBarry Jackson <barjac@mageia.org>2023-01-11 23:11:44 +0000
commit6fd530224aa8d3d7360405417282c8209b257ceb (patch)
tree4cf7f378717ff5ebbd8fc4247403e5cfe938e1b1 /chk-po
parent37954a86f6c7c44870cb178540293fd948987586 (diff)
downloadremove-old-kernels-6fd530224aa8d3d7360405417282c8209b257ceb.tar
remove-old-kernels-6fd530224aa8d3d7360405417282c8209b257ceb.tar.gz
remove-old-kernels-6fd530224aa8d3d7360405417282c8209b257ceb.tar.bz2
remove-old-kernels-6fd530224aa8d3d7360405417282c8209b257ceb.tar.xz
remove-old-kernels-6fd530224aa8d3d7360405417282c8209b257ceb.zip
add Spanish language strings - thanks aguador!
Diffstat (limited to 'chk-po')
-rwxr-xr-xchk-po16
1 files changed, 10 insertions, 6 deletions
diff --git a/chk-po b/chk-po
index 63341fe..6a02327 100755
--- a/chk-po
+++ b/chk-po
@@ -6,17 +6,21 @@
clear
for pofile in po/*; do
echo "Checking - ${pofile}"
+ entries=0
while read line ; do
- #echo $line
- findstr="$(echo "$line" | grep 'msgid'|cut -d'"' -f2)"
+
+ findid="$(echo "$line" | grep 'msgid'|cut -d'"' -f2)"
+ [[ ${#findid} = 0 ]] && continue
# Skip these two strings as they include a variable in the script.
- if echo "$findstr"|grep -q "that would be used"; then
+ if echo "$findid"|grep -q "that would be used"; then
continue
fi
- if ! fgrep -q "$findstr" remove-old-kernels; then
- echo "${pofile} - ${findstr}"
+ ((entries++))
+ if ! fgrep -q "$findid" remove-old-kernels; then
+ echo "${pofile} - ${findid}"
fi
done < "${pofile}"
-# echo ""
+ echo strings - $entries
done
+