def ungettext(singular, plural, number, context=None):
singular_stripped = strip_whitespace(singular)<EOL>plural_stripped = strip_whitespace(plural)<EOL>if context:<EOL><INDENT>singular = add_context(context, singular_stripped)<EOL>plural = add_context(context, plural_stripped)<EOL><DEDENT>else:<EOL><INDENT>singular = singular_stripped<EOL>plural = plural_stripped<EOL><DEDENT>ret = django_nugettext(singular, plural, number)<EOL>if ret == singular:<EOL><INDENT>return singular_stripped<EOL><DEDENT>elif ret == plural:<EOL><INDENT>return plural_stripped<EOL><DEDENT>return ret<EOL>
Always return a stripped string, localized if possible