Changeset 24601
- Timestamp:
- 11/22/08 12:51:49 (7 weeks ago)
- Location:
- lang/perl/DateTime-Lite/trunk
- Files:
-
- 2 modified
-
lib/DateTime/Lite/Locale.pm (modified) (5 diffs)
-
t/13strftime.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/DateTime-Lite/trunk/lib/DateTime/Lite/Locale.pm
r24599 r24601 54 54 # key, it allows them to be settable. 55 55 return bless { @_, 56 default_date_format_length => $class->_default_date_format_length(),57 default_time_format_length => $class->_default_time_format_length(),56 default_date_format_length => 'medium', 57 default_time_format_length => 'medium', 58 58 }, $class; 59 59 } … … 69 69 my $default = $_[0]->default_date_format_length(); 70 70 if (! $default) { 71 die sprintf("DateTime::Lite::Locale %s did not return a proper value from default_date_format_length()", $_[0]->{ name});71 die sprintf("DateTime::Lite::Locale %s did not return a proper value from default_date_format_length()", $_[0]->{id}); 72 72 } 73 73 my $meth = "date_format_$default"; … … 127 127 sub _available_formats { } 128 128 129 sub default_date_format_length { $_[0]->{ _default_date_format_length} }129 sub default_date_format_length { $_[0]->{default_date_format_length} } 130 130 131 131 sub set_default_date_format_length … … 137 137 } 138 138 139 sub default_time_format_length { $_[0]->{ _default_time_format_length} }139 sub default_time_format_length { $_[0]->{default_time_format_length} } 140 140 141 141 sub set_default_time_format_length … … 385 385 time_format_medium 386 386 time_format_short 387 _default_date_format_length388 _default_time_format_length389 387 _format_for_Hm 390 388 _format_for_M -
lang/perl/DateTime-Lite/trunk/t/13strftime.t
r24480 r24601 31 31 { 32 32 $locale = $1; 33 eval "use DateTime::Lite::Locale::$1";34 die $@ if $@;35 33 36 34 Test::More::diag("New locale: $locale\n");
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)