#NEWLINE# def ungettext( singular , plural , number , context = None ) : #NEWLINE# #INDENT# 'Always return a stripped string, localized if possible' #NEWLINE# singular_stripped = strip_whitespace ( singular ) #NEWLINE# plural_stripped = strip_whitespace ( plural ) #NEWLINE# if context : #NEWLINE# #INDENT# singular = add_context ( context , singular_stripped ) #NEWLINE# plural = add_context ( context , plural_stripped ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# singular = singular_stripped #NEWLINE# plural = plural_stripped #NEWLINE# #UNINDENT# ret = django_nugettext ( singular , plural , number ) #NEWLINE# if ( ret == singular ) : #NEWLINE# #INDENT# return singular_stripped #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ret == plural ) : #NEWLINE# #INDENT# return plural_stripped #NEWLINE# #UNINDENT# #UNINDENT# return ret