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
It's clear in console log.
I spent my day and figured out the bug:
--- a/modeltranslation/utils.py
+++ b/modeltranslation/utils.py
@@ -80,7 +80,7 @@ build_localized_verbose_name = lazy(_build_localized_verbose_n
ame, str)
def _join_css_class(bits: list[str], offset: int) -> str:
- if "-".join(bits[-offset:]) in settings.AVAILABLE_LANGUAGES + ["en-us"]:
+ if "-".join(bits[-offset:]) in settings.AVAILABLE_LANGUAGES + ["en-us", "ind"]:
It seems you'v forgot to make reverse lookup for Indonesian here in utils.py
Unfortunately I cant make PR to this repo.
It would be nice you make this fix for new version.
Thanks for a fix, applied it and released new version. Please check.
flameai
changed the title
Adding indonesian language leads to admin tabs layout crushing in TabedTranslationAdmin
Adding indonesian language leads to admin tabs layout crashing in TabedTranslationAdmin
Oct 17, 2024
If you add Indonesian (Id) to LANGUAGES in Django and try to use TabbedTranslationAdmin there it looks weird
The text was updated successfully, but these errors were encountered: