Option to warn user if the device does not have enough RAM
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user