summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan O'Dea <bod@debian.org>2011-05-29 08:43:21 +1000
committerBrendan O'Dea <bod@debian.org>2011-05-29 08:43:21 +1000
commit1be1463988dc142d7e51d72257de3edb6790f3aa (patch)
tree9ae42cc56971ecdeac7d33f6b0efa57aca9af6c0
parent84ebbbac2ef5d9636d163b879d8bf0b2cd5b7804 (diff)
downloadhelp2man-1be1463988dc142d7e51d72257de3edb6790f3aa.tar.gz
Allow date format to be localised
-rw-r--r--THANKS1
-rw-r--r--debian/changelog3
-rwxr-xr-xhelp2man.PL2
3 files changed, 4 insertions, 2 deletions
diff --git a/THANKS b/THANKS
index 3215fa2..c86fb4f 100644
--- a/THANKS
+++ b/THANKS
@@ -9,6 +9,7 @@ Jakub Bogusz <qboosh@pld-linux.org>
Paolo Bonzini <bonzini@gnu.org>
Felipe Castro <fefcas@gmail.com>
Yuri Chornoivan <yurchor@ukr.net>
+Yasumichi Akahoshi <yasumichi@vinelinux.org>
Mo DeJong <mdejong@cygnus.com>
Akim Demaille <demaille@inf.enst.fr>
Paul Eggert <eggert@twinsun.com>
diff --git a/debian/changelog b/debian/changelog
index 4dbc56e..3be0467 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,8 +4,9 @@ help2man (1.39.5) unstable; urgency=low
Berry.
* Document --libtool option.
* Fixup references to GNU Standards.
+ * Allow date format to be localised (thanks to Yasumichi Akahoshi).
- -- Brendan O'Dea <bod@debian.org> Sun, 15 May 2011 21:57:55 +1000
+ -- Brendan O'Dea <bod@debian.org> Sat, 28 May 2011 18:36:20 +1000
help2man (1.39.4) unstable; urgency=low
diff --git a/help2man.PL b/help2man.PL
index 39a3fb1..35057d1 100755
--- a/help2man.PL
+++ b/help2man.PL
@@ -331,7 +331,7 @@ sub get_option_value;
my $help_text = get_option_value $ARGV[0], $help_option;
$version_text ||= get_option_value $ARGV[0], $version_option;
-my $date = strftime "%B %Y", localtime;
+my $date = enc strftime _("%B %Y"), localtime;
(my $program = $ARGV[0]) =~ s!.*/!!;
my $package = $program;
my $version;