(value)
return trans
Translates a string ``value`` using pylons gettext first and if
    that fails, formencode gettext.

    This allows to "merge" localized error messages from built-in
    FormEncode's validators with application-specific validators.
Translates a string ``value`` using pylons gettext first and if
    that fails, formencode gettext.
Translates a string value using pylons gettext first and if that fails formencode gettext .
def pylons_formencode_gettext(value):
    """Translates a string ``value`` using pylons gettext first and if
    that fails, formencode gettext.

    This allows to "merge" localized error messages from built-in
    FormEncode's validators with application-specific validators.

    """
    trans = pylons_gettext(value)
    if trans == value:
        # translation failed, try formencode
        trans = api._stdtrans(value)
    return trans
def pylons_formencode_gettext ( value ) : trans = pylons_gettext ( value ) if trans == value : # translation failed, try formencode trans = api . _stdtrans ( value ) return trans