def get_translations(languages=None):
 translations = get_builtin_gnu_translations(languages)
 if hasattr(translations, 'ugettext'):
  return DefaultTranslations(translations)
 else:
  return translations

def get_translations ( languages = None ) : translations = get_builtin_gnu_translations ( languages ) if hasattr ( translations , 'ugettext' ) : return DefaultTranslations ( translations ) else : return translations
get a wtforms translation object which wraps the builtin gnutranslations object .