aboutsummaryrefslogtreecommitdiffhomepage
path: root/markup/pod/live-manual/media/text/bin/find-fuzzy.sh
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2025-10-09 23:03:14 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2025-10-31 11:10:22 -0400
commitd76c753ee05929fb53220141f1c8c11f31887466 (patch)
treeaccbc1be0aa09220baa9e453f6b69c8f9927d199 /markup/pod/live-manual/media/text/bin/find-fuzzy.sh
parenthousekeeping, 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/find-fuzzy.sh')
-rwxr-xr-xmarkup/pod/live-manual/media/text/bin/find-fuzzy.sh105
1 files changed, 0 insertions, 105 deletions
diff --git a/markup/pod/live-manual/media/text/bin/find-fuzzy.sh b/markup/pod/live-manual/media/text/bin/find-fuzzy.sh
deleted file mode 100755
index fca86ce..0000000
--- a/markup/pod/live-manual/media/text/bin/find-fuzzy.sh
+++ /dev/null
@@ -1,105 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Script to assist translators in finding and fixing fuzzy strings in live-manual.
-
-echo ""
-echo "There are $(grep -w 'fuzzy' manual/po/*/* | wc -l) fuzzy strings altogether in live-manual."
-echo "This script can help you find and fix them. What is your language?."
-echo "Type: $(ls -C manual/po) ['a' to see all]['q' to quit]"
-
-# Editor defaults to vim unless otherwise specified in preferences.
-
-EDITOR="${EDITOR:-vim}"
-
-# Creating the function. Searches 'fuzzy' and offers to open editor to fix them.
-
-Find_fuzzy ()
-{
- echo ""
- echo "There are $(grep -w 'fuzzy' manual/po/$ANSWER/* | wc -l) fuzzy strings in your language."
- echo ""
-
- if [ "$(grep -w 'fuzzy' manual/po/$ANSWER/* | wc -l)" -eq "0" ]
- then
- echo "You may now proceed... please do:"
- echo ""
- echo " * git add ."
- echo " * git commit -m \"Your commit message.\""
- echo " * git push "
- echo ""
-
- exit 0
- else
- grep -w 'fuzzy' manual/po/$ANSWER/*
-
- echo ""
- echo "Do you want to launch your text editor to start fixing them? [yes/no]"
-
- read OPENEDITOR
-
- case "$OPENEDITOR" in
- y*|Y*)
- $EDITOR $(grep -w 'fuzzy' manual/po/$ANSWER/* | sed 's|:#, fuzzy.*||' | uniq)
- ;;
-
- n*|N*)
- exit 0
- ;;
-
- *) echo "You didn't type 'yes'. Exiting..."
- exit 0
- ;;
- esac
- fi
-
- exit 0
-}
-
-# Languages menu.
-
-read ANSWER
-
-case "$ANSWER" in
- en)
- echo "Nothing to be done, really."
- echo "Translation English-English not implemented yet!"
- ;;
-
- ca|de|es|fr|it|ja|pl|pt_BR|ro)
- Find_fuzzy
- ;;
-
- a)
- grep -w 'fuzzy' manual/po/*/*
-
- echo ""
- echo "Do you want to launch your text editor to start fixing them? [yes/no]"
-
- read OPENEDITOR
-
- case "$OPENEDITOR" in
- y*|Y*)
- $EDITOR $(grep -w 'fuzzy' manual/po/*/* | sed 's|:#, fuzzy.*||' | uniq)
- ;;
-
- n*|N*)
- exit 0
- ;;
-
- *)
- echo "You didn't type 'yes'. Exiting..."
- exit 0
- ;;
- esac
- ;;
-
- q)
- exit 0
- ;;
-
- *)
- echo "No language chosen. Exiting..."
- ;;
-esac