Jump to content

Edit History

pliciweb_stephane

pliciweb_stephane


Solved

Hi,

I have a specific class in override directory that send a specific email with a Prestashop 1.7.4.2

That is my code :

Mail::Send(
	(int) Context::getContext()->language->id,
	'my_specific_template',
	Context::getContext()->getTranslator()->trans(
		'My email subject',
		array(),
		'Emails.Subject',
		Context::getContext()->language->id
	),
	array('{param}' => $param),
	$this->email
)

When i want to translate in International -> Translations-> Translate Email / Subject / English, my subject "My email subject" is not visible.

If i add an entry in "app/Resources/translations/default/EmailsSubject.xlf"

I can see my subject.

But when i translate it in Back office, an entry is created in database ps_translation but my email subject is not translate.

How i can translate my subject ?

 

Thank for your response. Hope, it'll be useful for other people.

Best regards

Stéphane

 

pliciweb_stephane

pliciweb_stephane

Hi,

I have a specific class in override directory that send a specific email with a Prestashop 1.7.4.2

That is my code :

Mail::Send(
	(int) Context::getContext()->language->id,
	'my_specific_template',
	Context::getContext()->getTranslator()->trans(
		'My email subject',
		array(),
		'Emails.Subject',
		Context::getContext()->language->id
	),
	array('{param}' => $param),
	$this->email
)

When i want to translate in International -> Translations-> Translate Email / Subject / English, my subject "My email subject" is not visible.

If i add an entry in "app/Resources/translations/default/EmailsSubject.xlf"

I can see my subject.

But when i translate it in Back office, an entry is created in database ps_translation but my email subject is not translate.

How i can translate my subject ?

 

Thank for your response. Hope, it'll be useful for other people.

Best regards

Stéphane

 

×
×
  • Create New...