Subject: | Documentation bugs in DateTime::Locale |
Some typos and some documentation paragraphs which did not
stay current with the module.
Patch included.
Jean Forget
--- /home/p80/modules/DateTime-Locale-0.09/lib/DateTime/Locale.pm Tue Mar 9 07:19:26 2004
+++ /var/tmp/DateTime/Locale.new Thu Sep 9 21:19:55 2004
@@ -306,7 +306,7 @@
# but mostly just things like ...
my $dt = DateTime->now( locale => 'fr' );
- print "Aujord'hui le mois est " . $dt->month_name, "\n":
+ print "Aujourd'hui le mois est " . $dt->month_name, "\n":
=head1 DESCRIPTION
@@ -515,7 +515,7 @@
# NOT Ridas::Locales::Custom::en_GB_RIDAS !
my $l = DateTime::Locale->load('en_GB_RIDAS');
-If you a locale for that id already exists, you must specify the
+If you register a locale for that id already exists, you must specify the
"replace" parameter as true, or an exception will be thrown.
The complete name for a registered locale is generated by joining
@@ -564,20 +564,20 @@
my $locale_id = 'en_GB_RIDAS1';
my $date_formats =
- [
- "%A %{day} %B %{ce_year}",
- "%{day} %B %{ce_year}",
- "%{day} %b %{ce_year}",
- "%{day}/%m/%y",
- ];
+ {
+ "full" => "%A %{day} %B %{ce_year}",
+ "long" => "%{day} %B %{ce_year}",
+ "medium" => "%{day} %b %{ce_year}",
+ "short" => "%{day}/%m/%y",
+ };
my $time_formats =
- [
- "%H h %{minute} %{time_zone_short_name}",
- "%{hour12}:%M:%S %p",
- "%{hour12}:%M:%S %p",
- "%{hour12}:%M %p",
- ];
+ {
+ "full" => "%H h %{minute} %{time_zone_short_name}",
+ "long" => "%{hour12}:%M:%S %p",
+ "medium" => "%{hour12}:%M:%S %p",
+ "short" => "%{hour12}:%M %p",
+ };
sub date_formats { $date_formats }
sub time_formats { $time_formats }
@@ -747,8 +747,8 @@
=item set_default_time_format_length ($length)
-These methods return one of "full", "long", "medium", or "short",
-indicating the current default format length.
+These methods accept one of "full", "long", "medium", or "short",
+indicating the new default format length.
=back
@@ -848,7 +848,7 @@
This program is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
-The full text of the license can be found in the LICENSE file included
+The full text of the license can be found in the F<LICENSE> file included
with this module.
The locale modules in directory C<DateTime/Locale/> have been