Open jnns opened 1 year ago
Thanks for the report. Immediately I can't say what's going on.
I am planning a release to coincide with Django 4.2 so if you're able to dig more I'm happy to take a fix.
Oh, maybe, did the label get cached before the translations were activated? (That's caused a stumble in the past)
Thank you, Carlton. I will take a second look at it on the weekend.
This is an example ordering filter in a fresh Django project using Django 4.1.6 and django-filter-22.1. With
LANGUAGE_CODE
set toel
,de
andpl
it shows that translations fromdjango.po
files are applied as expected, but the "(descending)" part is always in English.Interestingly, there's a test for this particular translation and it passes just fine:
test.test_filters.test_translation_default_label
.I wrote a parametrized test to see if it was just a problem with my particular
django.mo
file but it also passes with all available languages:I don't understand why the tests pass but the real application fails. Can you reproduce this issue? Do you know what's wrong with the internationalization here?