osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-18-2004, 02:35 PM
New Member
 
Join Date: Jan 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stando
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 01-19-2004, 11:37 AM
Active Member
 
Join Date: May 2003
Posts: 148
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Arpit
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 01-19-2004, 02:16 PM
New Member
 
Join Date: Jan 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stando
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 01-20-2004, 04:38 AM
Member
 
Join Date: Jun 2003
Location: Helsinki
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Lynoure
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 01-20-2004, 09:00 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Posts: 1,558
Thanks: 1
Thanked 84 Times in 71 Posts
Rep Power: 10
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
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
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 01-20-2004, 10:51 AM
New Member
 
Join Date: Jan 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stando
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 01-21-2004, 12:51 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Posts: 1,558
Thanks: 1
Thanked 84 Times in 71 Posts
Rep Power: 10
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
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
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 01-23-2004, 06:50 AM
Member
 
Join Date: Jun 2003
Location: Helsinki
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Lynoure
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 04:02 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax