diff --git a/docs/phrase/README.TXT b/docs/phrase/README.TXT index 8cd7975064..463718289f 100644 --- a/docs/phrase/README.TXT +++ b/docs/phrase/README.TXT @@ -7,6 +7,11 @@ to automatically generate or verify all the files exist for a particular language. If you are capable of recording each language please do so and contribute them to the project. As phrases are added, the files will need to be updated for the respective phrase_xx.xml file. +make_checks.sh - script to compare phrase_en.xml with other language xml files. +Script output contans prompt elements with attributes: +translated - value 'false' or not displayed; +transpated-to - tranlation value if exists; +more-then-one-translation - displayed if exist two or more for given wav file. How can you contribute? diff --git a/docs/phrase/make_checks.sh b/docs/phrase/make_checks.sh new file mode 100755 index 0000000000..72e6105987 --- /dev/null +++ b/docs/phrase/make_checks.sh @@ -0,0 +1,17 @@ +#!/bin/sh +SAXON_JAR=/usr/share/java/saxon9he.jar +XML=$1 + +if [ ! -f "$SAXON_JAR" ]; then + echo "Please update 'SAXON_JAR' varaiable value to location of SAXON jar" + exit -1 +fi + +if [ -z "$XML" ]; then + echo "Error: Please enter xml file name that must be ckecked." + echo "Exmple: make_checks.sh phrase_es_ES.xml > comparison_result.xml" + exit -1 +fi + +java -jar "$SAXON_JAR" -xsl:make_checks.xslt -t "$XML" + diff --git a/docs/phrase/make_checks.xslt b/docs/phrase/make_checks.xslt new file mode 100644 index 0000000000..af71cb7257 --- /dev/null +++ b/docs/phrase/make_checks.xslt @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +