ThemeFuse / Unyson-Forms-Extension

This extension adds the possibility to create a contact form. Use the drag & drop form builder to create any contact form you'll ever want or need.
4 stars 9 forks source link

Translate Form Validation Errors (without changing wp-admin main language) #44

Open Konrud opened 7 years ago

Konrud commented 7 years ago

I need to be able to translate form validation error into my own (RTL) language without changing wp-admin language. I can't do this using .po / .mo files because then I need to change the main language of the wp-admin.

I don't find any "simple" way to do this.

GheorgheP commented 7 years ago

Sorry, but you cannot do it in other way. As i understand you do not need to translate only the erorrs but all other texts.

You better make a script that change the wordpress language depending if you are in admin area or frontend area.

Konrud commented 7 years ago

No I don't need to change all the text only errors.

Konrud commented 7 years ago

I've tried to overwrite (change errors into my language) the extensions (like: class-fw-option-type-form-builder-item-number.php) in my child theme but it doesn't work.

GheorgheP commented 7 years ago

Hmmm, no you cannot translate them other way.

Konrud commented 7 years ago

Can I overwrite the extension files, e.g. class-fw-option-type-form-builder-item-number.php?

GheorgheP commented 7 years ago

No, you cannot, you can create a new number item type.

Konrud commented 7 years ago

I've tried to do so according to this article: http://manual.unyson.io/en/latest/extension/forms/index.html#contents But it doesn't work. When I try to use it, it displays some errors on the wp-admin panel. Please take a look at the screenshot that I've made. https://postimg.org/image/h6e7two1v/