./fix-translations script to fix common problems in the strings.xml
This commit is contained in:
		
							parent
							
								
									333343fd3d
								
							
						
					
					
						commit
						d55c7b7eaf
					
				| 
						 | 
				
			
			@ -0,0 +1,10 @@
 | 
			
		|||
#!/bin/bash -x
 | 
			
		||||
 | 
			
		||||
# Fix TypographyEllipsis programmatically
 | 
			
		||||
sed -i 's/\.\.\./…/g' res/values*/*.xml
 | 
			
		||||
 | 
			
		||||
# Replace "--" with an "em dash" character
 | 
			
		||||
sed -i 's,\(\>[^\<]*\)--\([^\>]\),\1—\2,g' res/values*/*.xml
 | 
			
		||||
 | 
			
		||||
# make sure apostrophes in strings are escaped
 | 
			
		||||
sed -i "s,\(>[^<]*[^\\]\)',\1\\\\',gp" res/values*/*.xml
 | 
			
		||||
		Loading…
	
		Reference in New Issue