django-forms-builder
django-forms-builder copied to clipboard
Any tip to support multi language for 'response, intro, label'
For multi language sites, any work around with translation for response, intro, label fields? Anybody has any such experiences?
Hi, did you solved this problem already? If yes, can you please write down how?
You're most likely would be using a CMS, right? In any case, create two or more forms - one for each language. That's the solution.
Yes, that is what I do - each for language.
create two or more forms - one for each language
Hm. It's more a work-a-round than a good solution, isn't it?
What's about to use django-parler for the form labels and the other Text fields?
@jedie:
Honestly, I don't think this package delivers a good solution to any of the issues/problems it's supposed to address. :)
I currently work on a solution without parler:
I add a FormTranslationModel() that will contain translations for a form...
The idea is:
- create a form in default language (settings.LANGUAGE_CODE)
- create a translation for all lables in one of the languages from (settings.LANGUAGES)
- render the form will used the translation, if available or fallback to default language
But it's not ready to use, yet. I will create a pull request, if i have a working proof-of-concept...
I add a proof-of-concept with pull #214
And add some screenshots, how it worked:
https://github.com/stephenmcd/django-forms-builder/pull/214#issuecomment-360179489
I'll be trying this as well. Anymore graceful solutions you have come up with since this thread died?