﻿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
34221	Plural-Forms in .po files break Django's translation precedence.	Stefano Parmesan	Claude Paroz	"According to the [https://docs.djangoproject.com/en/4.1/topics/i18n/translation/#how-django-discovers-translations| documentation], Django reads translations from `LOCALE_PATHS` first, then from apps in `INSTALLED_APPS`, and then from its own folders.

This behaviour breaks if the files in `LOCALE_PATHS` contain `Plural-Forms` while those found in `INSTALLED_APPS` don't.

To test this behaviour I created a test project on github here:

https://github.com/armisael/test-django-i18n-preference

The project contains a .po file with `Plural-Forms` and a single translation that is also included in one of the dependencies. A single test checks which translation is picked.

With the current configuration, the test fails by using the dependency translation. It passes if:
1) the dependency is removed from `INSTALLED_APPS`; or if
2) `Plural-Forms` is removed from the .po file.

1) proves that i18n is correctly configured, and that the dependency translation is picked over the project one; 2) proves that `Plural-Forms` is involved in the bug."	Bug	closed	Internationalization	4.1	Normal	fixed	i18n	Claude Paroz Dmytro Litvinov viktorparipas92	Ready for checkin	1	0	0	0	0	0
