﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
14924	I18N looks for translations in the reverse order of the apps	Klaas van Schelven	nobody	"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.
"		closed	Internationalization	1.2		fixed			Ready for checkin	1	0	0	0	0	0
