Translate message at email sent

Hi, I translated everything I need to Portuguese using Joomla, but when is sent a offline message, I can't find how to translate the subject ( A new offline message from ,,,,)

I already tried to find at language/en-GB but is not there.
3 years 10 months ago #1 by Ricardo

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5261) Offline
Umm it's still hadrcoded. We will include the language support in the next version. In the meantime you can add a template override then change this code in default.php on lines 417 :
if ($errormsg == '') {
$mySubject = 'A new offline message from '.$app->input->post->get('rp_name','','raw');
$myMessage = 'You received a message from '. $app->input->post->get('rp_name','','raw')." - Phone : ".$app->input->post->get('rp_phone','','raw')." - Email : ". $app->input->post->get('rp_email','','raw') ."\n\n". $app->input->post->get('rp_message','','raw','', 'raw');

into
if ($errormsg == '') {
$mySubject = 'Uma nova mensagem offline de '.$app->input->post->get('rp_name','','raw');
$myMessage = 'Você recebeu uma mensagem de '. $app->input->post->get('rp_name','','raw')." - Telefone : ".$app->input->post->get('rp_phone','','raw')." - Email : ". $app->input->post->get('rp_email','','raw') ."\n\n". $app->input->post->get('rp_message','','raw','', 'raw');

If you don't know how to create template override, please follow this video
3 years 10 months ago #2 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum