diff --git a/xwords4/android/scripts/strings_check.sh b/xwords4/android/scripts/strings_check.sh index 3f44f4b74..6b648c9f8 100755 --- a/xwords4/android/scripts/strings_check.sh +++ b/xwords4/android/scripts/strings_check.sh @@ -22,7 +22,12 @@ list_ids() { list_pairs() { XML_FILE=$1 - xmlstarlet sel -T -t -m "/resources/string" -v "concat(.,'|')" -n $XML_FILE + #xmlstarlet sel -t -m "//string" -v @name -o ':' -v . -n $XML_FILE | tr -d '\n' | sed 's, *, ,g' + for NAME in $(list_ids $XML_FILE); do + xmlstarlet sel -t -m "//string[@name='$NAME']" -v @name -o ':' -v . $XML_FILE \ + | tr -d '\n' | sed 's, *, ,g' + echo "" + done } while [ $# -gt 0 ]; do