[or-cvs] r22862: {projects} minor fixes (projects/android/trunk/Orbot)

Runa Sandvik runa.sandvik at gmail.com
Wed Aug 11 18:53:21 UTC 2010


Author: runa
Date: 2010-08-11 18:53:20 +0000 (Wed, 11 Aug 2010)
New Revision: 22862

Modified:
   projects/android/trunk/Orbot/po2xml.sh
Log:
minor fixes

Modified: projects/android/trunk/Orbot/po2xml.sh
===================================================================
--- projects/android/trunk/Orbot/po2xml.sh	2010-08-11 18:27:03 UTC (rev 22861)
+++ projects/android/trunk/Orbot/po2xml.sh	2010-08-11 18:53:20 UTC (rev 22862)
@@ -18,7 +18,8 @@
 translated=""
 
 # Location of the orbot directory, i.e. the original English xml file.
-# Do not add the trailing slash.
+# In svn, this should be svn/projects/android/trunk/Orbot/res. Do not add the
+# trailing slash.
 xml=""
 
 ### End config ###
@@ -54,10 +55,10 @@
 		if [ -e "$xml/values-$lang/tmp-$xmlfile" ]
 		then
 			mv "$xml/values-$lang/tmp-$xmlfile" "$xml/values-$lang/$xmlfile"
+			
+			# We need to escape apostrophe's
+			sed -i "s,',\\\',g" "$xml/values-$lang/$xmlfile"
 		fi
-
-		# We need to escape apostrophe's
-		sed -i "s,',\\\',g" "$xml/values-$lang/$xmlfile"
 	}
 	
 	# If the current directory is zh_CN use zh, else convert everything.



More information about the tor-commits mailing list