diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2025-10-09 23:03:14 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2025-10-31 11:10:22 -0400 |
| commit | d76c753ee05929fb53220141f1c8c11f31887466 (patch) | |
| tree | accbc1be0aa09220baa9e453f6b69c8f9927d199 /markup/pod/live-manual/media/text/bin/count-untranslated-strings.sh | |
| parent | housekeeping, update/sync with project (nix, D) (diff) | |
samples pod dir now markup/pod-samples/pod
- markup/pod-samples/pod from markup/pod
Diffstat (limited to 'markup/pod/live-manual/media/text/bin/count-untranslated-strings.sh')
| -rwxr-xr-x | markup/pod/live-manual/media/text/bin/count-untranslated-strings.sh | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/markup/pod/live-manual/media/text/bin/count-untranslated-strings.sh b/markup/pod/live-manual/media/text/bin/count-untranslated-strings.sh deleted file mode 100755 index 1087df1..0000000 --- a/markup/pod/live-manual/media/text/bin/count-untranslated-strings.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -set -e - -# Count total number of untranslated strings in live-manual - -Count_untranslated_strings () -{ -for POFILE in manual/po/*/* - do - if [ "$(sed '$!d' ${POFILE})" = 'msgstr ""' ] - then - sed '$G' ${POFILE} | grep --extended-regexp --before-context=1 '^$' | grep --count '^msgstr ""$' || continue - else - grep --extended-regexp --before-context=1 '^$' ${POFILE} | grep --count '^msgstr ""$' || continue - fi - done -} - -Count_untranslated_strings | awk '{ sum += $1 } END { print sum }' |
