Translate email body - Forum | JoomShaper
Solved Extensions

Translate email body

Asked by Elmir Mustafic 5 years ago Last activity 5 years ago

Hello, i translated mostly whole SpProperty component (modules too) but can't find where to translate Email body for Request info from Property page.
When i send email from here
http://prntscr.com/wnevzn

I get this email and i want to translate that strings
http://prntscr.com/wnetrt

Accepted answer

Marked as the solution
Elmir Mustafic Asked this

Nevermind i found file that manage email body. <br>
File is located in: components/com_spproperty/controllers/properties.php<br>
Line 137-141

$msg  = '';
            $msg .= '<p><strong>Richiesta per: </strong>' . $pname .'</p>';
            $msg .= '<p><strong>Nome : </strong>' . $name .'</p>';
            $msg .= '<p><strong>Telefono : </strong>' . $phone .'</p>';
            $msg .= '<p><strong>Email : </strong>' . $recipient .'</p>';
            $msg .= '<p><strong>Messaggio :</strong><br /> ' . nl2br( $message ) .'</p>';

3 more replies

Ofi Khan Staff

Hello Elmir Mustafic

Please go to this location: language\en-GB\en-GB.com_sppagebuilder.ini and change the following strings:

  1. COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_NAME="Name"
  2. COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_EMAIL="Email"
  3. COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_PHONE="Phone"
  4. COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_MESSAGE="Message"

Best regards

Elmir Mustafic Asked this

Hmm sorry but no, that's translate for Addon of SpPage Builder and not for SpProperty. As you can see i translated form fields from spproperty language files but i need to translate Email that system sends me from property page.

[http://prntscr.com/wo6dcg]

Ofi Khan Staff

Great!

Then you need to customize the file.

Log in to reply.