How did you implement the multilingual website? Do you know what locale code is used for Arabic? ‘ar’? or ‘ar_**’?
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.
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!
I noticed that the source code of the page containing the form
<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.
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.