#19482: django.contrib.localflavor in INSTALLED_APPS raises DeprecationWarning -------------------------------------+------------------------------------- Reporter: andreas_pelme | Owner: nobody Type: Bug | Status: new Component: Documentation | Version: Severity: Release blocker | 1.5-beta-1 Keywords: localflavor | Resolution: Has patch: 0 | Triage Stage: Design Needs tests: 0 | decision needed Easy pickings: 1 | Needs documentation: 0 | Patch needs improvement: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by claudep): Here are some proposed updated snippets for localflavor documentation: For 1.5: {{{ Internationalization of localflavor =================================== The legacy ``localflavor`` application has its own catalog of translations, in the directory ``django/contrib/localflavor/locale``, and it's not loaded automatically like Django's general catalog in ``django/conf/locale``. If you want localflavor's texts to be translated, like form fields error messages, you must include :mod:`django.contrib.localflavor` in the :setting:`INSTALLED_APPS` setting, so the internationalization system can find the catalog, as explained in :ref:`how-django-discovers-translations`. For the newly-created ``localflavor`` applications, their behaviour is identical to any standard Django application, that is the application name (e.g. ``django_localflavor_jp``) should be present in the :setting:`INSTALLED_APPS` setting to activate the translations. }}} For 1.6: {{{ Internationalization of localflavors ==================================== To activate translations for any ``localflavor`` application, it's the same procedure as with any other standard Django application, that is the application name (e.g. ``django_localflavor_jp``) should be present in the :setting:`INSTALLED_APPS` setting. }}} -- Ticket URL: <https://code.djangoproject.com/ticket/19482#comment:5> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.