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 ? : Original field does not contains the default language #710

Closed pulse-mind closed 7 months ago

pulse-mind commented 7 months ago

Hello,

Well done for the job done including the documentation.

I have a model with a field 'name', then I get 'name_fr' and 'name_en'. My default language is fr.

When I go into the admin, click on create, I fill the name_fr and name_en and click on save.

I can see that name contains name_en.

I would like that name contains name_fr.

How to do that ?

last-partizan commented 7 months ago

Hi, can you be more specific?

Where do you want to see name_fr?

pulse-mind commented 7 months ago

Here I am adding a "function" where I set FR and EN version of field name:

Add_Function___Vikta_Admin

After saving the name column contains the same value than the name_en. I'd like to have the name_fr.

Select_Function_to_change___Vikta_Admin

Is it more specific enough ?

last-partizan commented 7 months ago

Yes, that's great!

Looking at your interface (everything in English), i can suggest your current language is English - so, "name" contains English translation.

it's supposed to be depndent on your current language.

pulse-mind commented 7 months ago

thanks for your help, I understand why, on this browser I set English has the default language :D. My other browser are set in French...