Make Pod::Perldoc use PERLDOC_POD2 ENV var
authorEnrico Sorcinelli <enrico.sorcinelli@gmail.com>
Wed, 30 Sep 2009 07:56:07 +0000 (09:56 +0200)
committerSteffen Mueller <smueller@cpan.org>
Wed, 30 Sep 2009 08:16:43 +0000 (10:16 +0200)
commit83298dfc8d92e012de41ae52193e2fd7e2bcbd84
tree4778be4e677a04e19f2701aeba8c8b94ea8fcb1d
parent37ca4a5b0e9f2e075b875f76e6e1d90c52288ad9
Make Pod::Perldoc use PERLDOC_POD2 ENV var

* The "PERLDOC_POD2" environment variable could be used, to set once, the
preferred translation (instead of using "-L" switch each time).

eg. export PERLDOC_POD2=it

If "PERLDOC_POD2=1", the language code will be auto-retrieved from
locale, that is, from "LC_ALL" "LC_LANG" "LANG" environment variables
respectively.

export PERLDOC_POD2=1

* bug fix: -f switch works correctly with missing translations.
* bug fix: perldoc now correctly works with several translators
ext/Pod-Perldoc/lib/Pod/Perldoc.pm