deschler / django-modeltranslation

Translates Django models using a registration approach.
BSD 3-Clause "New" or "Revised" License
1.34k stars 257 forks source link

Question about Indonesian language code #713

Closed kunambi closed 7 months ago

kunambi commented 7 months ago

I tried to add Indonesian to my project with the language code "id". However, when I ran ./manage.py makemigrations it added the fields "title_ind", "description_ind", etc.

Why did it add the "ind" suffix instead of "id"?

last-partizan commented 7 months ago

https://github.com/deschler/django-modeltranslation/commit/902a7c9a72c28a46c948e24c1ac113715df17e48

Two-letter suffix conflicts with django "_id" sufifx, so we replaced it.