[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r23220: {projects} thanks to Clint for fixing my regex (projects/android/trunk/Orbot)



Author: runa
Date: 2010-09-17 21:01:05 +0000 (Fri, 17 Sep 2010)
New Revision: 23220

Modified:
   projects/android/trunk/Orbot/po2xml.sh
Log:
thanks to Clint for fixing my regex

Modified: projects/android/trunk/Orbot/po2xml.sh
===================================================================
--- projects/android/trunk/Orbot/po2xml.sh	2010-09-17 19:43:21 UTC (rev 23219)
+++ projects/android/trunk/Orbot/po2xml.sh	2010-09-17 21:01:05 UTC (rev 23220)
@@ -15,12 +15,12 @@
 
 # Location of the translated files, i.e. the path to the orbot
 # directory in the translation module. Do not add the trailing slash. 
-translated=""
+translated="/home/runa/tor/translation/projects/orbot"
 
 # Location of the orbot directory, i.e. the original English xml file.
 # In svn, this should be svn/projects/android/trunk/Orbot/res. Do not add the
 # trailing slash.
-xml=""
+xml="/home/runa/tor/orbot/res"
 
 ### End config ###
 
@@ -57,7 +57,8 @@
 			mv "$xml/values-$lang/tmp-$xmlfile" "$xml/values-$lang/$xmlfile"
 			
 			# We need to escape apostrophe's
-			sed -i "s,',\\\',g" "$xml/values-$lang/$xmlfile"
+		#	sed -i "s,',\\\',g" "$xml/values-$lang/$xmlfile"
+			sed -i "s/\([^\\]\)'/\1\\\\'/g" "$xml/values-$lang/$xmlfile" 
 		fi
 	}