[fix] gettext can't work with f-strings (i10n)
``str.format`` is the pythonic way of handling strings returned by gettext.gettext that retain interpolation tokens. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
		
							parent
							
								
									a235c54f8c
								
							
						
					
					
						commit
						3f4e0b0859
					
				| @ -33,7 +33,7 @@ class SXNGAnswerer(Answerer): | |||||||
| 
 | 
 | ||||||
|         return AnswererInfo( |         return AnswererInfo( | ||||||
|             name=gettext(self.__doc__), |             name=gettext(self.__doc__), | ||||||
|             description=gettext(f"Compute {'/'.join(self.keywords)} of the arguments"), |             description=gettext("Compute {func} of the arguments".format(func='/'.join(self.keywords))), | ||||||
|             keywords=self.keywords, |             keywords=self.keywords, | ||||||
|             examples=["avg 123 548 2.04 24.2"], |             examples=["avg 123 548 2.04 24.2"], | ||||||
|         ) |         ) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user