On Tue, 2007-04-03 at 22:40 +0100, Rory Campbell-Lange wrote: > Dear Malcolm > > Many thanks for your response. > > On 03/04/07, Malcolm Tredinnick ([EMAIL PROTECTED]) wrote: [...] > > Note that the reference to "dummy gettext()" in the docs is just saying > > that you should avoid using the real (imported) gettext() function in > > that file. Just copy what global_settings.py does if you want that. We > > mark all the language names as translatable in global_settings.py, for > > example. > > I think I understand -- I'll stick to standard imported gettext where I > can.
Just to clarify this: use functions from django.translation everywhere, except in settings.py. In your settings file, do not import anything from django.translation (or anything that imports django.translation). This is only because django.translation relies on the value of settings.USE_I18N, so if you haven't finished configuring your settings, you will be caught in a dependency circle. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

