#14924: I18N looks for translations in the reverse order of the apps ---------------------------+------------------------------------------------ Reporter: vanschelven | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: 1.2 Keywords: | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ I18N should look for translation strings in the order of apps as given in INSTALLED_APPS. Translations in apps that appear earlier in that list should be used rather than translations later in that list in case there are conflicts.
As described in #14910 as "point 2". I'm reproducing the important parts here: Django's default template loader is documented here:[[BR]] http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#template- loaders {{{ ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') }}} Having looked at the original tests the most desirable order appears to be: 1. Project path locale 2. Apps (in correct order) 3. Locale-path 4. Django's own translations The attached patch is a reflection of 1. The order mentioned above 2. Non-destructive dictionary updates 3. I had to move the monkey-patching code into the _merge function, because the first actually found locale is no longer known in advance. -- Ticket URL: <http://code.djangoproject.com/ticket/14924> Django <http://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-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.