Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Posts
    4
    Plugin Contributions
    0

    How can i define my own day of week and month name?

    Hi,
    Can i use some my own name for month name and date of week name?
    e.g : "This product has been added on [my date], [my month] 2006."
    Regard.

  2. #2
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: How can i define my own day of week and month name?

    Quote Originally Posted by mannguyenpc
    Hi,
    Can i use some my own name for month name and date of week name?
    e.g : "This product has been added on [my date], [my month] 2006."
    Regard.
    Welcome to zen cart mannguyenpc

    If you see the file:
    \admin\includes\functions\general.php

    -------------
    function zen_draw_date_selector($prefix, $date='') {
    $month_array = array();
    $month_array[1] =_JANUARY;
    $month_array[2] =_FEBRUARY;
    $month_array[3] =_MARCH;
    $month_array[4] =_APRIL;
    $month_array[5] =_MAY;
    $month_array[6] =_JUNE;
    $month_array[7] =_JULY;
    $month_array[8] =_AUGUST;
    $month_array[9] =_SEPTEMBER;
    $month_array[10] =_OCTOBER;
    $month_array[11] =_NOVEMBER;
    $month_array[12] =_DECEMBER;


    ------------

    and the file:
    \admin\includes\languages\english.php

    ------------
    define('_JANUARY', 'January');
    define('_FEBRUARY', 'February');
    define('_MARCH', 'March');
    define('_APRIL', 'April');
    define('_MAY', 'May');
    define('_JUNE', 'June');
    define('_JULY', 'July');
    define('_AUGUST', 'August');
    define('_SEPTEMBER', 'September');
    define('_OCTOBER', 'October');
    define('_NOVEMBER', 'November');
    define('_DECEMBER', 'December');


    -----------
    Its in these two files the months are defined

  3. #3
    Join Date
    Aug 2006
    Posts
    4
    Plugin Contributions
    0

    Re: How can i define my own day of week and month name?

    Hi,
    I have edited english.php the month name with my language. But it still display by English (e.g: August), I think it call a function date[] from system. Otherwise, i want to change Monday, Tuesday,..... to my language too. Help me please.
    Regard.

  4. #4
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: How can i define my own day of week and month name?

    Can you tell me exactly where you want this? on which page

  5. #5
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: How can i define my own day of week and month name?

    Many of the Date functions are based on the server's date and time - changing the Charset may help - See this FAQ - http://www.zen-cart.com/forum/faq.ph...ig#faq_charset

  6. #6
    Join Date
    Aug 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: How can i define my own day of week and month name?

    Hi,
    You can view my site at http://www.giakhang.com.vn/
    My language is Vietnamese. I have edited english.php with

    @setlocale(LC_TIME, 'en_US.UTF-8');
    to
    @setlocale(LC_TIME, 'vi');

    but the month still August. Please help me.
    Regard.

 

 

Similar Threads

  1. Renaming month and day in order history
    By dito20 in forum Managing Customers and Orders
    Replies: 2
    Last Post: 10 Oct 2010, 12:26 PM
  2. Replies: 6
    Last Post: 12 Sep 2009, 09:49 AM
  3. Specials by day of week
    By jgkiefer in forum Setting Up Specials and SaleMaker
    Replies: 5
    Last Post: 27 Apr 2009, 02:57 AM
  4. Replies: 3
    Last Post: 29 Jan 2008, 04:43 AM
  5. Changing Date-Of-Birth to require only month and day
    By richmanfl in forum Managing Customers and Orders
    Replies: 2
    Last Post: 11 Nov 2007, 05:14 AM

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