You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 to el, de and pl it shows that translations from django.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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: