Option to warn user if the device does not have enough RAM

This commit is contained in:
pelya
2012-10-30 18:22:36 +02:00
parent e38cf2f06f
commit 8e9c49b884
8 changed files with 96 additions and 13 deletions

View File

@@ -15,6 +15,7 @@ grep '<string name=' values/strings.xml | while read str; do
transtext=`echo $trans | sed 's/<string name=["][^"]*["]>\([^<]*\).*/\1/'`
if [ -z "$transtext" ] ; then
transtext=`./translate.py en $lang "$text"`
echo "$transtext" | grep 'Suspected Terms of Service Abuse' > /dev/null && transtext="$text"
grep -v "^[<]/resources[>]\$" $dir/strings.xml > $dir/strings.1.xml
echo "<string name=\"$var\">$transtext</string>" >> $dir/strings.1.xml
echo "</resources>" >> $dir/strings.1.xml