tower/__init__.py
def ugettext(message, context=None):
    """Always return a stripped string, localized if possible"""
    stripped = strip_whitespace(message)

    message = add_context(context, stripped) if context else stripped

    ret = django_ugettext(message)

    # If the context isn't found, we need to return the string without it
    return stripped if ret == message else ret
def ugettext(message, context=None):
    """Always return a stripped string, localized if possible"""
    stripped = strip_whitespace(message)

    message = add_context(context, stripped) if context else stripped

    ret = django_ugettext(message)

    # If the context isn't found, we need to return the string without it
    return stripped if ret == message else ret
def ugettext ( message , context = None ) : stripped = strip_whitespace ( message ) message = add_context ( context , stripped ) if context else stripped ret = django_ugettext ( message ) # If the context isn't found, we need to return the string without it return stripped if ret == message else ret
Always return a stripped string, localized if possible
Always return a stripped string localized if possible