Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Posts
    19
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,925
    Plugin Contributions
    96

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

  3. #3
    Join Date
    Feb 2010
    Posts
    19
    Plugin Contributions
    0

    Default Re: Translating days&months

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

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

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

 

 

Similar Threads

  1. Changing the days and months???
    By OBife in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Feb 2007, 05:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg