summaryrefslogtreecommitdiffstats
path: root/po/check_for_tutorial_problems.sh
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-03-23 23:55:00 +0000
committerJabiertxo Arraiza Zenotz <jtx@jtx.marker.es>2013-03-23 23:55:00 +0000
commitfcf78be8abebd65eafc2d66af8666f07557c953e (patch)
treeafef626ee4ace0c9faf954c783befd50db7de496 /po/check_for_tutorial_problems.sh
parentUpdate to trunk (diff)
downloadinkscape-fcf78be8abebd65eafc2d66af8666f07557c953e.tar.gz
inkscape-fcf78be8abebd65eafc2d66af8666f07557c953e.zip
Remove all old lenguage files
(bzr r11950.1.72)
Diffstat (limited to 'po/check_for_tutorial_problems.sh')
-rwxr-xr-xpo/check_for_tutorial_problems.sh68
1 files changed, 0 insertions, 68 deletions
diff --git a/po/check_for_tutorial_problems.sh b/po/check_for_tutorial_problems.sh
deleted file mode 100755
index c76e4d5e1..000000000
--- a/po/check_for_tutorial_problems.sh
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/bin/bash
-# check the main Inkscape tree for tutorial-related problems
-# $1: full name of the root directory of the local copy of the main Inkscape tree
-# usage example:
-# check_for_tutorial_problems.sh /tmp/inkscape
-
-LANG=C
-LC_ALL=C
-
-PO_FILE_LIST=`ls -1 "$1/po/" | grep "\.po$" | sort`
-
-echo "$PO_FILE_LIST" |\
-while read PO_FILENAME; do
- echo; echo "----- $PO_FILENAME -----------------------------------"
- TRANSLATIONS_IN_CURRENT_PO=`cat "$1/po/$PO_FILENAME" | grep -A 1 "^msgid\ \"tutorial-[^.]*\.svg\""`
- UNTRANSLATED_COUNT=`echo "$TRANSLATIONS_IN_CURRENT_PO" | grep -c "^msgstr \"\""`
- if [ $UNTRANSLATED_COUNT -gt 0 ]; then
- echo "$PO_FILENAME has $UNTRANSLATED_COUNT untranslated tutorial filenames"
- fi
- echo "$TRANSLATIONS_IN_CURRENT_PO" | grep -v "^msgstr \"\"" |\
- grep "^msgstr \"" |\
- while read TUTORIAL_FILENAME_TRANSLATION_LINE; do
- TUTORIAL_FILENAME_TRANSLATION=`echo "$TUTORIAL_FILENAME_TRANSLATION_LINE" |\
- sed 's/^msgstr \"\(.*\)\"[ ]*$/\1/'`
- echo -n "$PO_FILENAME references \"$TUTORIAL_FILENAME_TRANSLATION\""
- if [ -e "$1/share/tutorials/$TUTORIAL_FILENAME_TRANSLATION" ]; then
- echo " OK"
- else
- echo " ERROR: THE REFERENCED FILE DOESN'T EXIST, PLEASE CHECK"
- fi
- done
-done
-
-echo; echo
-
-TUTORIAL_FILE_LIST=`ls -1 "$1/share/tutorials/" | grep "^tutorial-[^.]*\...\.svg$" | sort`
-
-echo "$TUTORIAL_FILE_LIST" |\
-while read TUTORIAL_FILENAME; do
- echo; echo "----- $TUTORIAL_FILENAME -----------------------------------"
- LANGUAGE_CODE=`echo "$TUTORIAL_FILENAME" | sed 's/^tutorial-[^.]*\.\(..\)\.svg$/\1/'`
- if [ -e "$1/po/$LANGUAGE_CODE.po" ]; then
- TRANSLATIONS_IN_CURRENT_PO=`cat "$1/po/$LANGUAGE_CODE.po" | grep -A 1 "^msgid\ \"tutorial-[^.]*\.svg\""`
- echo "$TRANSLATIONS_IN_CURRENT_PO" | grep -q "^msgstr \"$TUTORIAL_FILENAME\""
- if [ $? -eq 0 ]; then
- echo "$TUTORIAL_FILENAME is referenced in $LANGUAGE_CODE.po"
- else
- echo "WARNING: $TUTORIAL_FILENAME IS NOT REFERENCED IN $LANGUAGE_CODE.po"
- fi
- else
- echo "WARNING: \"$LANGUAGE_CODE.po\" FILE NOT FOUND"
- fi
-done
-
-echo; echo
-
-TUTORIAL_DIRECTORY_FILELIST=`ls -1 "$1/share/tutorials/" | grep -v "^Makefile.am$" | sort`
-
-echo "$TUTORIAL_DIRECTORY_FILELIST" |\
-while read TUTORIAL_DIRECTORY_FILENAME; do
- cat "$1/share/tutorials/Makefile.am" | grep -q "^ $TUTORIAL_DIRECTORY_FILENAME "
- if [ $? -ne 0 ]; then
- cat "$1/share/tutorials/Makefile.am" | grep -q "^ $TUTORIAL_DIRECTORY_FILENAME$"
- if [ $? -ne 0 ]; then
- echo "WARNING: $TUTORIAL_DIRECTORY_FILENAME IS NOT IN Makefile.am"
- fi
- fi
-done