Support » Plugin: Contact Form 7 » How to set Contact form 7 for multilingual use in English and Arabic?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    How did you implement the multilingual website? Do you know what locale code is used for Arabic? ‘ar’? or ‘ar_**’?

    Thread Starter ml@ivr4u.com

    (@mlivr4ucom)

    The website is http://www.dr-dib.com/
    I use polylang for multilingual
    I use ‘ar’
    I implemented Contact form 7 in arabic on http://www.dr-dib.com/en/early-intervention-quiz/prenatal-and-birth/

    اختبار مرحلة الحمل والولادة

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    The contact form was created in en_US locale so it’s shown in LTR text direction. Once recreate a contact form in ar locale and replace the current one with it. I’m not familiar with Polylang, but at least you can change the locale in Settings > General menu. Change the locale, then go to Contact > Add New.

    Thread Starter ml@ivr4u.com

    (@mlivr4ucom)

    OK, thank you. It seems to work.
    All that seems to matters is that the form is created in ar, then I can switch back to any language to edit the form (I do not know anything about Arabic, so it seemed challenging at first).
    It seems that the language settings are kept when I duplicate the form too, which is great.
    Thank you for a great plugin!

    Thread Starter ml@ivr4u.com

    (@mlivr4ucom)

    I noticed that the source code of the page containing the form
    view-source:http://www.dr-dib.com/ar/2test-ar/
    has:
    <div role=”form” class=”wpcf7″ id=”wpcf7-f320-p307-o1″ lang=”ar” dir=”rtl”>
    Where are the values for lang and dir stored and how can they be changed?
    I checked the database with phpmyadmin, but could not locate it.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    The locale code is stored in the post_meta table. dir="rtl" is added because it’s Arabic. You don’t need to change it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to set Contact form 7 for multilingual use in English and Arabic?’ is closed to new replies.