mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-31 15:47:25 +01:00 
			
		
		
		
	Merge branch 'i18n' into l10n-fr
Conflicts: src/i18n.py
This commit is contained in:
		
						commit
						249eace2cf
					
				
							
								
								
									
										10
									
								
								src/i18n.py
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								src/i18n.py
									
									
									
									
									
								
							| @ -306,6 +306,10 @@ def internationalizeDocstring(obj): | ||||
|     Only useful for commands (commands' docstring is displayed on IRC)""" | ||||
|     if sys.modules[obj.__module__].__dict__.has_key('_'): | ||||
| 	internationalizedCommands.update({hash(obj): obj}) | ||||
| 	obj.__doc__=sys.modules[obj.__module__]._.__call__(obj.__doc__) | ||||
| 	# We use _.__call__() instead of _() because of a pygettext warning. | ||||
| 	return obj | ||||
| 	try: | ||||
| 	    obj.__doc__=sys.modules[obj.__module__]._.__call__(obj.__doc__) | ||||
| 	    # We use _.__call__() instead of _() because of a pygettext warning. | ||||
| 	except AttributeError: | ||||
| 	    # attribute '__doc__' of 'type' objects is not writable | ||||
| 	    pass | ||||
|     return obj | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Valentin Lorentz
						Valentin Lorentz