Support » Plugin: Contact Form 7 » Contact form 7 response message translation idea

  • Resolved VampKALLE

    (@maidus)


    Hello!

    I love this plugin BUT, it becomes such a pain to translate response messages EVERY TIME i need my forms in other languages.
    My workflow: I create forms in ENG language. If i need to translate these forms to other languages i make a duplicate of current form. And I have to change response messages in every form every time in every language.

    Please, can you add some kind of dropdown to choose which language response messages to show? Translations will come from language files that are available with the plugin.

    This would make my life so much easier because i dont have to copy-paste all the time…

    PLEASE?

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

    (@takayukister)

    VampKALLE

    (@maidus)

    I have seen it. Dropdown option would be much simpler and quicker to use.
    I am not going to recreate every form in correct language just to have correct response messages. I still have to copy all other form parts again..
    Please, add that dropdown thing to make all of our lives easier..

    • This reply was modified 1 year ago by VampKALLE.

    What about this request?
    How can be the default messages be filled in the right language in wpml translation manager?
    It is really necessary to have a way to have pre-filled those fields!
    otherwise this plugin cannot be used easily for multilanguage sites…
    thank you very much

    straint

    (@straint)

    Hi. I had the same problem so I developed a small plugin that solve it. Even if it has not the best graphic, it does the job.

    https://wordpress.org/plugins/cf7-translate-messages-extension/

    Don’t know if promoting my plugin is illegal, but it is related to the main Contact Form 7 plugin, not meant to be a competitor plugin. (@takayukister i will remove this comment if you want)

    Note that the plugin has been published a few days ago. If you find some bugs, please contact me through the support section. Thank you.

    @takayukister, was it so hard to make it happen? Thanks @straint, it’s perfect.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    @straint I think creating a plugin to solve your problems is the right approach. Contact Form 7 is designed to be easy to make an expansion plugin, so when you have an idea, just code it 🙂 Thanks for creating it.

    Promoting something is not appropriate here, though. Only this once, please.

    Forum Guidelines

    Hi. What do you think about this? Instead of cloning the same form each time we need a new language translation on our site, the form by default could be automatically translated using the language packs. For this purpose we need to change:

    //	$atts['whatever'] = $value;
    	$atts['whatever'] = __('' . $value . '','contact-form-7'); //modules/*5 files
    
    //	$this->invalid_fields[$name] = array(
    // 		'reason' => (string) $message,
    $mytext = __('' . (string) $message . '', 'contact-form-7'); //includes/acceptance.php
    	$this->invalid_fields[$name] = array(
    		'reason' => $mytext,
    
    //	'message' => $submission->get_response(),	
    	'message' => __('' . $submission->get_response() . '','contact-form-7'), //includes/contact-form.php

    I hope it will be useful.

    Thank you for this great plugin.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Contact form 7 response message translation idea’ is closed to new replies.