From 6fd530224aa8d3d7360405417282c8209b257ceb Mon Sep 17 00:00:00 2001 From: Barry Jackson Date: Wed, 11 Jan 2023 23:11:44 +0000 Subject: add Spanish language strings - thanks aguador! --- chk-po | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'chk-po') 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 + -- cgit v1.2.1