Zen Cart Logo
Forums / Basic Configuration / How do i change the date to danish in orders comments?

How do i change the date to danish in orders comments?

Views: 647

Results 1 to 3 of 3
21 Jun 2012, 5:32 PM
#1
enpeek avatar

enpeek

New Zenner

Join Date:
Mar 2012
Posts:
15
Plugin Contributions:
0

How do i change the date to danish in orders comments?

How do i change the date in orders comments, when the email are sent the date ordered are sent in english, it should be sent in danish, where do i change it from English to Danish??

thanks friends :)

23 Jun 2012, 1:01 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,084
Plugin Contributions:
56

Re: How do i change the date to danish in orders comments?

Is your admin setup to use both English and Danish, but you want the date to come out in Danish format regardless of the current admin language? If that's the case, you could modify the following section of /YOUR_ADMIN/includes/languages/english.php to contain the same values as its Danish counterpart:

// look in your $PATH_LOCALE/locale directory for available locales..
setlocale(LC_TIME, 'en_US');
define('DATE_FORMAT_SHORT', '%m/%d/%Y');  // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('PHP_DATE_TIME_FORMAT', 'm/d/Y H:i:s'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
define('DATE_FORMAT_SPIFFYCAL', 'MM/dd/yyyy');  //Use only 'dd', 'MM' and 'yyyy' here in any order
24 Jun 2012, 8:43 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How do i change the date to danish in orders comments?

If the Danish language module you are using has been properly built, it will have LANGUAGES files for the admin area too...