Zen Cart Logo
Forums / Addon Language Packs / Translating days&months

Translating days&months

Locked

Views: 2,266

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
4 Jun 2010, 2:54 PM
#1
jeremiah avatar

jeremiah

New Zenner

Join Date:
Feb 2010
Posts:
19
Plugin Contributions:
0

Translating days&months

Hello. I would like to translate days and months in emails that are sent after the customer ordered a product. I tried editing english.php file in /includes/languages but the result in still the same.
Maybe I have to look fora a piece of code where the email date is generated by php.

Example
Friday, 04 June 2010

7 Jun 2010, 5:05 PM
#2
lat9 avatar

lat9

Administrator

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

Re: Translating days&months

The date functions within zen-cart use the PHP function strftime, which is where the names of the days and months come from. That setting is based on the value set by the setlocale() call in the main language file (e.g. english.php, spanish.php, etc.).

If you're wanting to translate the days & months, I'd presume that you have a language other than English installed. You need to make sure that the setlocale parameters in OTHERLANGUAGE.php(present in /includes/languages) is valid for your server's operating system and the language you're using.

13 Jun 2010, 5:01 PM
#3
jeremiah avatar

jeremiah

New Zenner

Join Date:
Feb 2010
Posts:
19
Plugin Contributions:
0

Re: Translating days&months

So what you are saying is that days and months cannot be translated because they depend on the OS ?

13 Jun 2010, 6:16 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Translating days&months

No. They are defined in english.php, but if you have multiple languages, you'll need to change the english.php file for the other language.

A link to your site would help.