What steps will reproduce the problem?
1. set up language to 'de'
2. echo Yii::app()->getLocale()->getWeekDayName(0, 'narrow');
getting php error "Undefined index: narrow"
What is the expected output? What do you see instead?
I expected "S" as an output, but you won't find the index "narrow" in the
CLocale->_data array at the index "weekDayNames" but at the index
"weekDayNamesSA". The same with months.
What version of the product are you using? On what operating system?
1.1.0 on Debian GNU/Linux system.
Please provide any additional information below.
printout snippet of the CLocale->_data array:
['weekDayNames'] =>
array(
['wide'] =>
array(
[0] => 'Sonntag'
[1] => 'Montag'
[2] => 'Dienstag'
[3] => 'Mittwoch'
[4] => 'Donnerstag'
[5] => 'Freitag'
[6] => 'Samstag'
)
['abbreviated'] =>
array(
[0] => 'So.'
[1] => 'Mo.'
[2] => 'Di.'
[3] => 'Mi.'
[4] => 'Do.'
[5] => 'Fr.'
[6] => 'Sa.'
)
)
['weekDayNamesSA'] =>
array(
['narrow'] =>
array(
[0] => 'S'
[1] => 'M'
[2] => 'D'
[3] => 'M'
[4] => 'D'
[5] => 'F'
[6] => 'S'
)
)
Thx for fixing!
Jule
Original issue reported on code.google.com by jule.sit...@googlemail.com on 15 Feb 2010 at 1:33
Original issue reported on code.google.com by
jule.sit...@googlemail.com
on 15 Feb 2010 at 1:33