Home Forums Newsletter Plugin Support Issue with multilingual messages not being sent correctly in custom forms

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #344102
    loicdelplanque22
    Participant

    Hello,

    I’m experiencing an issue with multilingual support in The Newsletter Plugin, specifically with the confirmation, welcome, and unsubscribe messages.

    Here’s the situation:

    My website is multilingual using TranslatePress.

    I’m using a custom HTML subscription form, based on your plugin’s documentation.

    This form includes a hidden field:

    <input type="hidden" name="nlang" value="">

    I have configured different messages in the plugin for each language (French, English, German, Spanish, etc.), using the specific language tabs.

    However, no matter the language of the page or the form, the email sent is always the one from the “All languages” tab.

    So my questions are:

    Is the nlang field properly supported in custom HTML forms to control which message is sent based on language?

    Is there another recommended way to ensure the correct message (confirmation, welcome, unsubscribe) is sent depending on the user’s language at the time of subscription?

    If not, is there a filter or PHP hook available to programmatically set the message language before the email is sent?

    Thank you in advance for your help.
    I’m happy to share the exact form code if needed.

    Best regards

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.