• Resolved nrsoft

    (@nrsoft)


    Hi there,

    I would like to know if there is any way to translate the email message with WPML and how easy it would be to add Recaptcha to the download form.

    Thanks for your help
    Nicolas

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

    (@mkscripts)

    Hi Nicolas,

    Since version 1.9, a standard email message (which can be translated) is used if it remains empty on the messages options page (admin-menu-> downloads-> messages).

    Spam almost never occurs with our ajax-based forms. If necessary, we take extra measures to stop the spam, preferably without Recaptcha due to user-friendliness.

    Thread Starter nrsoft

    (@nrsoft)

    Hi,

    Thanks for your answer but I am a bit confused. If I leave the email message empty as you say the email I receive is blank and I don’t see how to translate it in WPML.
    Could you please clarify what is the procedure to follow to translate this email message?
    Thanks
    Nicolas

    Plugin Author mkscripts

    (@mkscripts)

    You are welcome!

    Make sure you have installed the latest version 1.9 and that the email content is completely empty (no spaces) when you click on the save button (admin-menu-> downloads-> messages).

    You can then, for example, use the “WPML String Translation” plugin to translate the strings of our plugin, including the email content.

    Thread Starter nrsoft

    (@nrsoft)

    Thanks for your answer. I can confirm that with version 1.9 everything is working fine.

    EDIT : quick question though is there any way to customize the English default message?

    • This reply was modified 5 years, 4 months ago by nrsoft.
    Plugin Author mkscripts

    (@mkscripts)

    Thank you for letting us know.

    You may want to create a custom .mo file to achieve this. These files will be used by WPML.

    Thread Starter nrsoft

    (@nrsoft)

    Hi

    The problem is the $message does not call the translation function so this would not work unless I am mistaken.
    I found an alternative way by calling the dae_email_message filter but this is not very clean and I have now the same issue with the email subject which is currently not possible to translate.
    Do you think you could update the following 2 lines (484 and 485) in shortcodes.php to the following code to make the subject and message translatable?

    $subject = __($messages['email_subject'], 'dae');
    $message = __(nl2br( wp_kses_post( $messages['email_content'] ) ), 'dae');
    

    Thanks
    Nicolas

    • This reply was modified 5 years, 4 months ago by nrsoft.
    • This reply was modified 5 years, 4 months ago by nrsoft.
    Plugin Author mkscripts

    (@mkscripts)

    Hi Nicolas,

    Since version 2.0 the email subject has been made translatable too. Thank you for noticing. The email message/content is translatable, if it is left empty on the messages settings page.

    Best regards,
    Team Download After Email

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Translate email message + captcha’ is closed to new replies.