PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_QuickForm » Bug #2015

Swedish is missing in date.php

Details

Submitted2004-07-29 14:27 UTC
Fromzafer at finnmera dot com
StatusNo Feedback
PackageHTML_QuickForm
PHP Version4.3.6
OSany
Roadmaps(Not assigned)

Comments

[2004-07-29 14:27 UTC] zafer at finnmera dot com

Description:
------------
Swedish weekdays and month are missing.

Reproduce code:
---------------
$form->addElement('date','something','something:',array('language'=>'sv'));

Expected result:
----------------
Swedish weekdays and months should be shown.

Actual result:
--------------
Default english weekdays and months.

[2004-07-29 14:32 UTC] zafer at finnmera dot com

//this is the code that should be added to
//date.php in var $_locale = array(...)
//hopefully it will help and work
//tors in weekdays_short could be tor if 3 it is nessery with only 3 letters
'sv' => array (
'weekdays_short'=> array ('Sön', 'Mån', 'Tis', 'Ons', 'Tors', 'Fre', 'Lör'),
'weekdays_long' => array ('Söndag', 'Måndag', 'Tisdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lördag'),
'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'),
'months_long' => array ('Januari', 'Februari', 'Mars', 'April', 'Maj', 'Juni', 'Juli', 'Augusti', 'September$
),