diff options
author | Barry Jackson <barjac@mageia.org> | 2023-01-11 23:11:44 +0000 |
---|---|---|
committer | Barry Jackson <barjac@mageia.org> | 2023-01-11 23:11:44 +0000 |
commit | 6fd530224aa8d3d7360405417282c8209b257ceb (patch) | |
tree | 4cf7f378717ff5ebbd8fc4247403e5cfe938e1b1 | |
parent | 37954a86f6c7c44870cb178540293fd948987586 (diff) | |
download | remove-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!
-rwxr-xr-x | chk-po | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -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 + |