• Resolved Clarion Technologies

    (@clarionwpdeveloper)


    Hello,

    We have been using Contact form 7 extension for a while, and appreciate for developing such an efficient extension.

    However, we are facing one issue. The issue is to translate validation error messages into various languages.

    Please help us to understand how to translate validation error messages.

    Thanks.

    https://wordpress.org/plugins/contact-form-7/

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

    (@takayukister)

    Thread Starter Clarion Technologies

    (@clarionwpdeveloper)

    Hi Takayuki Miyoshi,

    Thank you for your reply.

    The link you have shared is related to styling of error messages, however I was looking for translating error messages into regional languages.

    For eg. if my WordPress installation is in French language then error messages & form label rendered should be in French language other than default English language.

    Hope I am much clear with my query now.

    Thanks.

    I had the same issue and solved it using Polylang plugin (which is in my opinion the best multi-language plugin for WordPress). You can create separate form for each language, translate everything and then implement it on your pages using 2 different shortcodes. It’s super easy and clean solution. I hope this helps.

    I am using qTranslate-X and this is how i set up my messages:

    [:en]Das Feld ist erforderlich.[:en]The field is required.[:sk]Toto políčko je povinné.[:]

    Thread Starter Clarion Technologies

    (@clarionwpdeveloper)

    Hi Igor Lopasovsky, mickeyminer

    Thanks for reply, & for an instant solution. I believe that will solve my problem for now.

    Thanks!

    wpnewerv

    (@wpnewerv)

    Hello,

    i have been using Contact form 7.

    But, im also facing an issue with translating validation error messages into german.

    Im using Loco Translate for translating:
    Loco translating info: 100% translated, 306 strings

    On the contact form if i dont insert all text and want to send the form it will give following red texts:

    “The field is required” and “ONE OR MORE FIELDS HAVE AN ERROR. PLEASE CHECK AND TRY AGAIN”

    In the source of Loco translate it looks like this:

    #: includes/contact-form-template.php:169
    msgid “The field is required.”
    msgstr “Das Feld ist erforderlich.”

    #: includes/contact-form-template.php:148
    msgid “One or more fields have an error. Please check and try again.”
    msgstr “Ein oder mehrere Felder sind fehlerhaft. Bitte überprüfe sie und versuche es noch einmal.”

    For the Plugin it looks like it is already translated but on contact page it does not.

    In the Plugin Loco Tanslate the strings are already translated to german but on the website it is still in english.

    Any idea why?

    Screen_Shot_2017_05_05_at_21_27_06<br />how upload image<br />

    Thanks for your advise.

    Sincerely,
    Verling

    • This reply was modified 9 years ago by wpnewerv.
    • This reply was modified 9 years ago by wpnewerv. Reason: I added the source text of loco translate
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Translate Validation Error Messages’ is closed to new replies.