• Resolved wimbommerez

    (@wimbommerez)


    I am using qtranslateX to make participants database multilingual.

    For the most part, this works well: field labels, email messages etc. But there’s one thing that is not working: for select fields with dropdown or checkboxes, the selected value is not saved when the options are formatted in more languages.

    Fictional example with two options in two languages: [:en]Option A[:fr]Option A[:],[:en]Option B[:fr]Option B[:]
    In frontend we see the correct language, but nothing is saved after submitting the form.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    In order to do this, you need to use “value titles” for your translations. This means that the saved value will be the same no matter what the language. For example:

    [:en]Yes[:fr]Oui[:es]Si[:]::yes,[en:]No[:fr]Non[:es]No[:]::no

    That will store only “yes” or “no” but the user will see the options in their language. The general format for the values in a dropdown (or radio, etc.) is:

    Title::value,Title 2::value2,Title 3::value3

    So, you’re just replacing “Title” with the multilingual string. I should probably document this somewhere!

    Thread Starter wimbommerez

    (@wimbommerez)

    Thanks! That solved the issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Compatibility with qTranslateX for multilingual use’ is closed to new replies.