Commit 34919337 authored by Alexander Ivanov's avatar Alexander Ivanov

Separate scripts to search for new translations from webtranslateit.

parent 8cd47c1b
for i in `find ../res/ -type d -name value*`; do
echo $i
git diff ^HEAD $i | grep + | grep -E "("$(cat $(find ../res/values/ -name *.xml) | grep -E '%([0-9]\$|)[sd]' | perl -p -w -e 's/.*name="(\w+)".*$/$1/g' | sed -e :a -e N -e 's/\n/|/' -e ta)")"
done
for i in `find ../res/ -type d -name value*`; do
echo $i
git diff ^HEAD $i | grep + | grep "<string" | perl -p -i.bak -w -e 's/^\+\s*<string\sname="(\w+)">([^\n]*)<\/string>/$1: $2/g' | perl -p -i.bak -w -e 's/\\n/\n/g'
done
......@@ -2,8 +2,3 @@ unzip -o ../../1218-xabber.zip -d ../
perl -p -i.bak -w -e 's/&amp;([l|g]t;)/&$1/g' $(find ../res/ -path ../res/values*.xml)
perl -p -i.bak -w -e "s/\\\\\\\\'/\\\\'/g" $(find ../res/ -path ../res/values*.xml)
find ../res/ -type f -name "*.bak" -exec rm -f {} \;
for i in `find ../res/ -type d -name value*`; do
echo $i
git diff ^HEAD $i | grep + | grep -E "("$(cat $(find ../res/values/ -name *.xml) | grep -E '%([0-9]\$|)[sd]' | perl -p -w -e 's/.*name="(\w+)".*$/$1/g' | sed -e :a -e N -e 's/\n/|/' -e ta)")"
git diff ^HEAD $i | grep + | grep "<string" | perl -p -i.bak -w -e 's/^\+\s*<string\sname="(\w+)">([^\n]*)<\/string>/$1: $2/g' | perl -p -i.bak -w -e 's/\\n/\n/g'
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment