Hi Jan
Problem template mail:
Case:
Sending confirmation mail. We using paygate from Platni.cz.
If system change stratus to confirmation, send email to user with part of Swedish lang?!
Multilanguage is OFF, I check all template is good.
Change manual status and send one more time, send google mail.
We are using:
Phoca Cart 5.2.3 Joomla 5.4.1
Send is setup send txt and HTML.
https://ibb.co/6cbmQQy6 when send wrong.
https://ibb.co/nNkH2Xkn - how look mail with swidish part...
Mail template - Swedish string???
-
mjmartino
- Phoca Enthusiast

- Posts: 84
- Joined: 10 Jun 2019, 15:53
-
mjmartino
- Phoca Enthusiast

- Posts: 84
- Joined: 10 Jun 2019, 15:53
Re: Mail template - Swedish string???
For setup PC
In Phoca setup is Order Language: Fronted.
Fronted is setup: Czech (Čeština).
Joomla 5 is turn off multilanguage.
In Phoca setup is Order Language: Fronted.
Fronted is setup: Czech (Čeština).
Joomla 5 is turn off multilanguage.
- Jan
- Phoca Hero

- Posts: 49199
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Mail template - Swedish string???
Hi, is there somewhere defined the swedish language on your Site? Is it primar language?
Jan
Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero

- Posts: 49199
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Mail template - Swedish string???
BTW, can you share how the options for language are set?

Is this email to admin or to customer? What is customer language?

Is this email to admin or to customer? What is customer language?
If you find Phoca extensions useful, please support the project
-
mjmartino
- Phoca Enthusiast

- Posts: 84
- Joined: 10 Jun 2019, 15:53
Re: Mail template - Swedish string???
https://ibb.co/xZXk1mc
All customers buy as guests. Nobody creates an account.
For admin come 4 email.
All customers buy as guests. Nobody creates an account.
For admin come 4 email.
- Benno
- Phoca Hero

- Posts: 9988
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: Mail template - Swedish string???
Hi,
I think your screenshot looks strange:

Should be 'No' not 'Nie'

Have you changed any strings of en-GB.com_phocacart.ini? Or did you create language overrides?
Kind regards,
Benno
I think your screenshot looks strange:

Should be 'No' not 'Nie'

Have you changed any strings of en-GB.com_phocacart.ini? Or did you create language overrides?
Kind regards,
Benno
- Jan
- Phoca Hero

- Posts: 49199
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Mail template - Swedish string???
Hi, I have got information from platiti - there could be possible problem with switching language between the customer and the admin and Joomla, I added some more code to prevent from this problem, you can download and test Phoca Cart 6.1.0Beta3:
https://www.phoca.cz/download/99-phoca- ... -component
- I have tested this version in Joomla 6
- I have tested this version in Joomla 5
When using multilanguage (multilanguage in Joomla needs to be enabled):
- Mail to customer is in language defined in options - e.g. when he/she makes order in german language, then it is de-DE
- Mail to admin is in default language (en-GB)
It depends on Phoca Cart options, if order will be stored in customers language or translation strings so it can be translated to other languages (we are now speaking about e.g. the calculation inside email). Set parameter Order - Language Variables to YES if you want have e.g. invoice in different languages, set to no if it could be e.g. only in customers language (mostly this is not a problem if admin gets information about the order and it is in customers language, the mail should be only informative)
In any case, there should be not more mixing of languages inside email, tested with English and German:
- Text or html mail templates
- Changed order status in admin
- Changed order status by payment method, e.g. PayPal
Customer:

Admin:

Please test and let me know.
Thank you, Jan
https://www.phoca.cz/download/99-phoca- ... -component
- I have tested this version in Joomla 6
- I have tested this version in Joomla 5
When using multilanguage (multilanguage in Joomla needs to be enabled):
- Mail to customer is in language defined in options - e.g. when he/she makes order in german language, then it is de-DE
- Mail to admin is in default language (en-GB)
It depends on Phoca Cart options, if order will be stored in customers language or translation strings so it can be translated to other languages (we are now speaking about e.g. the calculation inside email). Set parameter Order - Language Variables to YES if you want have e.g. invoice in different languages, set to no if it could be e.g. only in customers language (mostly this is not a problem if admin gets information about the order and it is in customers language, the mail should be only informative)
In any case, there should be not more mixing of languages inside email, tested with English and German:
- Text or html mail templates
- Changed order status in admin
- Changed order status by payment method, e.g. PayPal
Customer:

Admin:

Please test and let me know.
Thank you, Jan
If you find Phoca extensions useful, please support the project
-
mjmartino
- Phoca Enthusiast

- Posts: 84
- Joined: 10 Jun 2019, 15:53
Re: Mail template - Swedish string???
Yes. This is my case from platiti 
We do not use multilanguage.
We have installed PL/EN/CZ/DE Only for the needs of people who log in using the administrative backend.
by default in this site is CZ (front) - PHOCA THIS SAME.
Backend is dependent on person. (PL/CZ)
Joomla have turn off Multilanguage because we are using separate installations for languages (different domains).
Phoca Cart have turn off Multilanguage.
All customers buy as guests. Nobody creates an account.
Jan could you test on quest?
Joomla 5 and PC5 IF i turn on Multilanguage i must be setup all article and products to setup Czech language. (this is not this case)
I can't install the beta because we also use PCUiKIT. So I have to do it on a separate copy. This will take me a while.
We do not use multilanguage.
We have installed PL/EN/CZ/DE Only for the needs of people who log in using the administrative backend.
by default in this site is CZ (front) - PHOCA THIS SAME.
Backend is dependent on person. (PL/CZ)
Joomla have turn off Multilanguage because we are using separate installations for languages (different domains).
Phoca Cart have turn off Multilanguage.
All customers buy as guests. Nobody creates an account.
Jan could you test on quest?
Joomla 5 and PC5 IF i turn on Multilanguage i must be setup all article and products to setup Czech language. (this is not this case)
I can't install the beta because we also use PCUiKIT. So I have to do it on a separate copy. This will take me a while.