Forums / Addon Language Packs / zen_date_raw in swedish language pack

zen_date_raw in swedish language pack

Locked

Views: 1,973

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
18 Mar 2007, 11:45 AM
#1
pasi avatar

pasi

Zen Follower

Join Date:
Mar 2004
Location:
Finland
Posts:
435
Plugin Contributions:
1

zen_date_raw in swedish language pack

Anyone want to tell me what the zen_date_raw function in the swedish language pack does??

It contains 51 lines of code, and relies much on regular expression??

What does it do differently than the zen_date_raw in english language, other than swapping around some of the numbers?

it has some internal check for the date ...
// Find maximum number of days in the current month, and make sure the day inserted is not higher.

but zencart doesn't allow you to insert wrong days anyway?

if it just swaps the numbers around allowing you to enter the date in dd.mm.yyyy format then I must say that there is much more elegant way to do it!?

I'm too busy to actually go through the code to see if it does something else too, so please, if anyone can enlighten me, then please do!

oh, and please, someone include an ENGLISH readme.txt file in the pack!

(and fix the default footer to include the "powered by zencart" etc. stuff, because replacing it completely with your own companys copyright notice is a bit unethical towards the zen cart team IMHO!)

Working with Zen Cart since 2003 :: www.prr.fi
Author of the original Finnish language pack for Zen Cart since 2004