try: from i18n import ChandlerMessageFactory as _ # What would be a good test translation? _("Test") except: def _(s): return s