New script: remove-unused-trans
This commit is contained in:
		
							parent
							
								
									b8998d711a
								
							
						
					
					
						commit
						cb68daa7f9
					
				
							
								
								
									
										9
									
								
								tools/remove-unused-trans.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								tools/remove-unused-trans.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,9 @@ | ||||
| #!/bin/bash -x | ||||
| 
 | ||||
| # Remove extra translations | ||||
| 
 | ||||
| lint . --quiet --check ExtraTranslation --nolines | \ | ||||
| 	sed -n 's/.*Error: "\([^"]*\)" is translated here but not found in default locale.*/\1/p' | \ | ||||
| 	while read name; do | ||||
| 		sed -i "/name=\"$name\"/d" res/values-*/strings.xml | ||||
| 	done | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Daniel Martí
						Daniel Martí