mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	python: Convert translated positional {} fields to {named} fields.
Translators benefit from the extra information in the field names, and need the reordering freedom that isn’t available with multiple positional fields. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						 Tim Abbott
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							db6323b2c4
						
					
				
				
					commit
					143baa4243
				
			| @@ -105,7 +105,7 @@ def check_narrow_for_events(narrow: Collection[NarrowTerm]) -> None: | ||||
|     for narrow_term in narrow: | ||||
|         operator = narrow_term.operator | ||||
|         if operator not in ["stream", "topic", "sender", "is"]: | ||||
|             raise JsonableError(_("Operator {} not supported.").format(operator)) | ||||
|             raise JsonableError(_("Operator {operator} not supported.").format(operator=operator)) | ||||
|  | ||||
|  | ||||
| def is_spectator_compatible(narrow: Iterable[Dict[str, Any]]) -> bool: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user