django-forms-builder icon indicating copy to clipboard operation
django-forms-builder copied to clipboard

Any tip to support multi language for 'response, intro, label'

Open sunjoomoon opened this issue 8 years ago • 8 comments

For multi language sites, any work around with translation for response, intro, label fields? Anybody has any such experiences?

sunjoomoon avatar Apr 14 '16 23:04 sunjoomoon

Hi, did you solved this problem already? If yes, can you please write down how?

Mirator avatar Aug 07 '16 20:08 Mirator

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.

barseghyanartur avatar Oct 06 '16 10:10 barseghyanartur

Yes, that is what I do - each for language.

sunjoomoon avatar Oct 25 '16 12:10 sunjoomoon

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 avatar Jan 19 '18 10:01 jedie

@jedie:

Honestly, I don't think this package delivers a good solution to any of the issues/problems it's supposed to address. :)

barseghyanartur avatar Jan 22 '18 09:01 barseghyanartur

I currently work on a solution without parler:

I add a FormTranslationModel() that will contain translations for a form...

The idea is:

  1. create a form in default language (settings.LANGUAGE_CODE)
  2. create a translation for all lables in one of the languages from (settings.LANGUAGES)
  3. 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...

jedie avatar Jan 22 '18 10:01 jedie

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

jedie avatar Jan 24 '18 15:01 jedie

I'll be trying this as well. Anymore graceful solutions you have come up with since this thread died?

thongly avatar Dec 01 '18 03:12 thongly