Results 1 to 8 of 8

How to set date in footer to another format

This is a discussion on How to set date in footer to another format within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; How can I set date in footer (actual day and the day since counter is active) in another format? I ...

      
  1. #1
    New Member
    Join Date
    Jan 2004
    Posts
    29
    Rep Power
    0


    Default How to set date in footer to another format

    How can I set date in footer (actual day and the day since counter is active) in another format? I would need Slovak names of the days and months, or maybe simplier - NO names of the days and numbers of months instead of their names.
    THX for every help.

  2. #2
    Active Member
    Join Date
    May 2003
    Posts
    148
    Rep Power
    0


    Default

    format can b changed from "catalog/includes/languages/yourLanguage/yourLanguage.php"
    where yourLanguage is the language u r using, i.e English or whatever

  3. #3
    New Member
    Join Date
    Jan 2004
    Posts
    29
    Rep Power
    0


    Default

    But, where could I define names of months? Or where can I change the way of displaying it? I did not find it in catalog/includes/languages/yourLanguage/myLanguage.php

  4. #4
    Member
    Join Date
    Jun 2003
    Location
    Helsinki
    Posts
    65
    Rep Power
    0


    Default

    I have a related problem. I get Finnish day and month names in most places in the finnish interface, but not in all the emails and I have no idea how to fix this as I haven't found where the names of the days and months are called from.

  5. #5
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    Default

    The day of the week and months are not stored in OSC (except for month names in Spiffy DHTML Popup Calendar Control - a javascript file included with OSC).

    This is an OS/bowser based lookup. Nothing to do with OSC - as that fuction for display is handed to the bowser to display the proper language. As for the EMAIL - that is sent though the SERVER (via PHP) and would pass that to the server's OS.

    To set PHP to use the CORRECT ISO Language to the date/time set in your main lauguage file:

    i.e.:in languages/german.php
    @setlocale(LC_TIME, 'de_DE.ISO_8859-1');

    Everything in OSC is set to use the ISO language specified. It is ther server that may not have the proper ISO language installed/enabled.
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  6. #6
    New Member
    Join Date
    Jan 2004
    Posts
    29
    Rep Power
    0


    Default

    THX for help jpf. When I porperly set this ISO, it shows coorect nanmes. But only on provider's server, on my Apache with PHP and MySQL modules, it shows only ENG names... But nevermind, I don't need it at home...

  7. #7
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    Default

    As I said - you have to have the proper ISO lauguage (number) installed on the server - MOST Windows "localhost" type boxes don't have more than 1 or 2 installed as a default .....
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  8. #8
    Member
    Join Date
    Jun 2003
    Location
    Helsinki
    Posts
    65
    Rep Power
    0


    Default

    I keep forgetting about admin/includes/languages/finnish.php
    So if anyone else has problems getting the date right in emails spawned from the admin interface, check your language file on the admin side.

Similar Threads

  1. FAQDesk, Change date format??
    By HollyRidge in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 09-28-2005, 03:50 PM
  2. Quick about date format
    By damnedpig in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 07-02-2004, 08:27 AM
  3. Date format question
    By Dr_Evil in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 10-23-2003, 07:23 AM
  4. Change date format
    By don in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 01-31-2003, 07:03 PM
  5. Date format
    By killermonkey in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 01-24-2003, 02:07 AM

Bookmarks

Posting Permissions

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