mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			459 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			459 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
# This test checks that dialogs have a non-default window title or it is not marked for translation
 | 
						|
 | 
						|
if git grep -E -B1 '<string>(Form|Dialog)</string>' "*.ui" | grep -qs '<property name="windowTitle"'; then
 | 
						|
  echo ' *** Found ui with default window title - consider changing or unchecking "translatable"/adding notr="true"'
 | 
						|
  git grep -E -B1 '<string>(Form|Dialog)</string>' "*.ui" | grep -A1 '<property name="windowTitle"'
 | 
						|
  exit 1
 | 
						|
fi
 | 
						|
 |