From 26aa8531fe59e6624949f6957d9022be2d6bbc7a Mon Sep 17 00:00:00 2001 From: Sergey Safarov Date: Fri, 2 Dec 2016 16:14:39 -0500 Subject: [PATCH 1/2] FS-9805: Created script to compare XML traslation files with phrase_en.xml --- docs/phrase/README.TXT | 5 +++ docs/phrase/make_checks.sh | 17 ++++++++++ docs/phrase/make_checks.xslt | 60 ++++++++++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100755 docs/phrase/make_checks.sh create mode 100644 docs/phrase/make_checks.xslt 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From fdfc024a521d2f08966226d8c95b03bf4c19fb85 Mon Sep 17 00:00:00 2001 From: Sergey Safarov Date: Sat, 3 Dec 2016 01:37:00 -0500 Subject: [PATCH 2/2] FS-9805: Organized prompts in phrase_en.xml --- docs/phrase/phrase_en.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/phrase/phrase_en.xml b/docs/phrase/phrase_en.xml index 682c0e7acf..43aa5b8a40 100644 --- a/docs/phrase/phrase_en.xml +++ b/docs/phrase/phrase_en.xml @@ -144,12 +144,12 @@ + - @@ -176,6 +176,8 @@ + + @@ -191,8 +193,6 @@ - -