I'm running revision 5765 on a CentOS in Python 2.4.3 and it doesn't
recognize (ImportError) the following functions from
django.utils.translation: ugettext, ungettext, deactivate_all
I've redownloaded django, checked permissions, and verified the functions do
actually exist in the source. Why wouldn't these functions be recognzied?
Here is the output of help(django.utils.translation) on that box.
-----
Help on package django.utils.translation in django.utils:
NAME
django.utils.translation - Internationalization support.
FILE
/usr/local/lib/python2.4/site-packages/django/utils/translation/__init__.py
PACKAGE CONTENTS
trans_null
trans_real
FUNCTIONS
activate(language)
check_for_language(lang_code)
deactivate()
get_date_formats()
get_language()
get_language_bidi()
get_language_from_request(request)
get_partial_date_formats()
gettext(message)
gettext_lazy = __wrapper__(*args, **kw)
gettext_noop(message)
install()
ngettext(singular, plural, number)
ngettext_lazy = __wrapper__(*args, **kw)
string_concat = __wrapper__(*args, **kw)
templatize(src)
to_locale(language)
DATA
__all__ = ['gettext', 'gettext_noop', 'gettext_lazy', 'ngettext',
'nge...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---