How to translate Awakes contact form short code

resolved (2 posts) (2 voices)

  1. Marten74
    Member

    Hello!

    I just had to revisit an old page I created with Awake. I stumbled over an issue I can´t quite figure out.

    In my local version of the page the contact form is translated to Swedish, but I noticed that it´s not in the online version.

    The short code I have in both versions are:

    [contactform email="###@###.###" captcha="true"]

    I searched your forums and found this page that I thought would help: http://mysitemyway.com/docs/Contact_Forms

    I tried inserting this code instead:

    [contactform email = "###@###.###" success = "Tack för ditt meddelande!"
    subject = "Från: ###.###" captcha = "true"]
    [name label="Namn"]
    [email label="E-post"]
    [textarea label="Meddelande"]
    [/contactform]

    Instead of showing my translation the text over the fields were missing all together.

    I also looked in the .po file with po edit to see if I had missed something in the translation. Name, Email and Message were not even in the .po file by them selves, so I guess the shortcode generates the text regardless of the .po file.

    What am I missing here? I´m sure (I hope) there is a simple answer and I can feel stupid for asking this question =)

    Thanks!

    ::mb

    Posted 2 years ago #
  2. Elliott
    Support

    Hello Marten74,

    Those texts should be in the .po file.

    If your still having trouble then try editing them on line 52 in the /lib/shortcodes/16-contact.php file.

    $content = '[name label="' . __( 'Name:', MYSITE_TEXTDOMAIN ) . '" required="true"][email label="' . __( 'Email:', MYSITE_TEXTDOMAIN ) . '" required="true"][textarea label="' . __( 'Message:', MYSITE_TEXTDOMAIN ) . '" required="true"]';
    Posted 2 years ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme