- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Marek
- Private: No
- Open Date: 23.09.19, 09:40
- Opened by: Walter Fontana
- Closed by: Marek
- Closed on: 21.10.19, 20:19
- Reason: Closed
- Comment: Glad to help!
Ticket #15654 - Translate Newsletter e-mail subject
I have to translate newsletter e-mail subject (img01)
But I don’t find where i can translate it
In translations section it was already translated but the translation does not work. (img02)
Comments
Hi, Walter.
It should be here https://take.ms/4AWvO
I’ve already translated that but it doesn’t work
As you can see in img02.
Strange, it should work.
Try to make translation directly in the .html files in the folder /modules/ps_emailsubscription/mails/it
In your theme the emails are in /themes/alysum/modules/ps_emailsubscription/mails/it
I have already edited the mails, but inside them there is not the subject!
where could it be?
I’m not sure that’s related to the theme. I have found similar issue https://github.com/PrestaShop/PrestaShop/issues/9599
Hi Marek,
the problem is only for emailsubscription. All other subjects are translated correctly.
I found in /modules/ps_emailsubscription/ps_emailsubscription.php this lines:
I can change directly the code, but then if i want to translate it in other languages is not possible.
Really you can’t help me?, because is very important!
ps_emailsubscription is a native prestashop module. As I can see the subject should be available for translation under “Emails.Subject” domain - https://take.ms/gHnwF
You can try to change the domain to “Modules.Emailsubscription.Shop”
If i do that, where i change the translation? Always in Email-Subject?
you will add a new domain “Modules.Emailsubscription.Shop” so translation should be available in the modules > Emailsubscription > Shop
No, does not add the two translations!
I realized that it is not possible to translate the subject…
even changing the code directly does not work. It’s normal?
Can you keep this ticket open? I’ll ask to Alex if he can help me when he has time, so I pay him all the work together.
ok
Unfortunately I didn’t found fast solution how to make translation work as it should via back-oofice
but for now you can translate the subject text directly in the file modules/pspagebuilder/classes/widget/newsletter.php
;)
Hi. Is it important for you to have ability translate it with the Back-office? If yes I will try to find the solution but for that I need a time to go deeper in the code :)
Hi alex, i received your e-mail with the prices, but I didn’t know you had seen the newsletter problem. If i can translate the subject directly it’s ok for now.
So i have to go to modules/pspagebuilder/classes/widget/newsletter.php and replace Newsletter voucher and Newsletter confirmation with my custom text?
ok, I understand how to translate the subject
Thanks