email sent at status changes is only in English?

  • Posts: 25
  • Thank you received: 0
12 years 8 months ago #41986

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..

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
12 years 8 months ago #42058

Hi,

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.

  • Posts: 25
  • Thank you received: 0
12 years 8 months ago #42302

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?

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
12 years 8 months ago #42468

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.

The following user(s) said Thank You: jansuhr

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

  • Posts: 182
  • Thank you received: 15
12 years 8 months ago #42522

That mod worked for me with Swedish.

Jan

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

  • Posts: 182
  • Thank you received: 15
12 years 8 months ago #42525

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

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
12 years 8 months ago #42528

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):

$config =& JFactory::getConfig();
					$locale = $config->getValue('config.language');
to:
$params   = JComponentHelper::getParams('com_languages');
					$locale = $params->get('site', 'en-GB');
in the file administrator/components/com_hikashop/classes/order.php
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.

  • Posts: 25
  • Thank you received: 0
12 years 8 months ago #42617

This works most excellent!!

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.073 seconds
Powered by Kunena Forum