Translate Email Body - Question | JoomShaper

Translate Email Body

EM

Elmir Mustafic

Extension 3 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

0
4 Answers
EM
Elmir Mustafic
Accepted Answer
3 years ago #2293

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>';
0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #2300

Great!

Then you need to customize the file.

0
EM
Elmir Mustafic
Accepted Answer
3 years ago #2287

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]

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #2238

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

0