def i18n(s): return _translate(s.encode('utf-8'))
def i18n(msg, *args): if isinstance(msg, text_type): msg = msg.encode('utf-8') return _translate(msg, *args) if args else _translate(msg)