- Posts: 25
- Thank you received: 0
email sent at status changes is only in English?
14 years 6 months ago #41986
by Symbiot
email sent at status changes is only in English? was created by Symbiot
hi
when I change status of an order.. and select to notify the customer, then the email that is sent is only in English?
I can't seem to change it to Danish.. which is the language that the rest of the component is in..?
How to do that?
Front end language of site is Danish..
back end language of site is English..
when I change status of an order.. and select to notify the customer, then the email that is sent is only in English?
I can't seem to change it to Danish.. which is the language that the rest of the component is in..?
How to do that?
Front end language of site is Danish..
back end language of site is English..
Please Log in or Create an account to join the conversation.
14 years 6 months ago #42058
by nicolas
Replied by nicolas on topic Re: email sent at status changes is only in English?
Hi,
You should log into your backend in Danish and the email will be in Danish too.
You should log into your backend in Danish and the email will be in Danish too.
Please Log in or Create an account to join the conversation.
14 years 6 months ago #42302
by Symbiot
Replied by Symbiot on topic Re: email sent at status changes is only in English?
yes, ok .. I figured that.. but can that be avoided.. I really HATE the danish backend... it's so much easier to administer the site in english, since all administration tools for other sites/programs etc. are in english....
Can't I force it to use Danish?
Can't I force it to use Danish?
Please Log in or Create an account to join the conversation.
14 years 6 months ago #42468
by nicolas
Replied by nicolas on topic Re: email sent at status changes is only in English?
You can try to change the line:
$lang->load(HIKASHOP_COMPONENT, JPATH_SITE, $locale, true );
to:
$lang->load(HIKASHOP_COMPONENT, JPATH_SITE, 'da-DK', true );
in the file administrator/components/com_hikashop/classes/order.php
If that doesn't work then I don't see any other solution.
$lang->load(HIKASHOP_COMPONENT, JPATH_SITE, $locale, true );
to:
$lang->load(HIKASHOP_COMPONENT, JPATH_SITE, 'da-DK', true );
in the file administrator/components/com_hikashop/classes/order.php
If that doesn't work then I don't see any other solution.
The following user(s) said Thank You: jansuhr
Please Log in or Create an account to join the conversation.
14 years 6 months ago #42522
by jansuhr
Jan Suhr
www.colorconsult.se www.jansuhr.se
Replied by jansuhr on topic Re: email sent at status changes is only in English?
That mod worked for me with Swedish.
Jan
Jan
Jan Suhr
www.colorconsult.se www.jansuhr.se
Please Log in or Create an account to join the conversation.
14 years 6 months ago #42525
by jansuhr
Jan Suhr
www.colorconsult.se www.jansuhr.se
Replied by jansuhr on topic Re: email sent at status changes is only in English?
Isn't it possible to set the variable $locale to pick up the customers frontend language instead of picking up the admins language.
For a multilanguage shop the customers language should be prioritized over the admins language, in the order you know the customers ID and there fore it would be possible to pick up the customers language setting.
Jan
For a multilanguage shop the customers language should be prioritized over the admins language, in the order you know the customers ID and there fore it would be possible to pick up the customers language setting.
Jan
Jan Suhr
www.colorconsult.se www.jansuhr.se
Please Log in or Create an account to join the conversation.
14 years 6 months ago #42528
by nicolas
Replied by nicolas on topic Re: email sent at status changes is only in English?
We actually have such code to get the front end user language.
But that only works when the user sets his language.
We also have some code to get the front end default language but it seems to not work anymore on new versions of Joomla.
Please change the code (there are 2 places where you need to do that):
to:
in the file administrator/components/com_hikashop/classes/order.php
and that should load the correct front end language.
But that only works when the user sets his language.
We also have some code to get the front end default language but it seems to not work anymore on new versions of Joomla.
Please change the code (there are 2 places where you need to do that):
Code:
$config =& JFactory::getConfig();
$locale = $config->getValue('config.language');
Code:
$params = JComponentHelper::getParams('com_languages');
$locale = $params->get('site', 'en-GB');
and that should load the correct front end language.
The following user(s) said Thank You: Symbiot
Please Log in or Create an account to join the conversation.
14 years 6 months ago #42617
by Symbiot
Replied by Symbiot on topic Re: email sent at status changes is only in English?
This works most excellent!!
Thank you all for your thoughts ideas and solutions!
Thank you all for your thoughts ideas and solutions!
Please Log in or Create an account to join the conversation.
Time to create page: 0.182 seconds