def respects_language(fun):
 @wraps(fun)
 def _inner(*args, **kwargs):
  with respect_language(kwargs.pop(u'language', None)):
   return fun(*args, **kwargs)
 return _inner

def respects_language ( fun ) : @ wraps ( fun ) def _inner ( * args , ** kwargs ) : with respect_language ( kwargs . pop ( u'language' , None ) ) : return fun ( * args , ** kwargs ) return _inner
decorator for tasks with respect to sites current language .