Hi,

Please take a look at this issue:
https://github.com/matthiask/django-translated-fields/issues/10

Do you have any solution?

In short, I'm trying to convert Speedy Net from
using django-modeltranslation to django-translated-fields. I defined the
models and forms and everything works in English, but in another language
(Hebrew) I have a problem that the form fields are defined in English
instead of Hebrew (the current language). What did I do wrong and how do I
define the form to work in the current language? (the fields defined
by TranslatedField in the model should be visible only with the current
language in the form SpeedyMatchProfileActivationForm).

You can see the code here:
https://github.com/speedy-net/speedy-net/tree/uri_try_django_translated_fields_2019-03-26_a
https://github.com/speedy-net/speedy-net/blob/uri_try_django_translated_fields_2019-03-26_a/speedy/match/accounts/forms.py
https://github.com/speedy-net/speedy-net/blob/uri_try_django_translated_fields_2019-03-26_a/speedy/match/accounts/models.py

By the way, one of the reasons I want to switch to django-translated-fields
is because it defines only 2 (the number of languages) fields in the
database, and django-modeltranslation defines 3 fields - one of them (the
main field without any language) seems to me not necessary at all. Take a
look at:
https://github.com/deschler/django-modeltranslation/issues/488

Thanks!


אורי
u...@speedy.net

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABD5YeG%2BdXhnoSwi4gJ289GxbiLA_91W-w2RWdpzCJNzUYehMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to