diff options
author | mkanat%bugzilla.org <> | 2006-09-14 13:57:29 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-09-14 13:57:29 +0000 |
commit | 761ae5de8e84ffd70489260364db5789ec135b55 (patch) | |
tree | a488a2e5b3605444791ba414dde70ee6292e1cab /checksetup.pl | |
parent | Bug 277502: Re-organize checksetup.pl to be understood more easily (make it a... (diff) | |
download | bugzilla-761ae5de8e84ffd70489260364db5789ec135b55.tar.gz bugzilla-761ae5de8e84ffd70489260364db5789ec135b55.tar.bz2 bugzilla-761ae5de8e84ffd70489260364db5789ec135b55.zip |
Bug 352608: Make checksetup more localizable
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=myk
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-x | checksetup.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/checksetup.pl b/checksetup.pl index d38fb5441..d8e920a6d 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -47,6 +47,7 @@ use 5.008; use File::Basename; use Getopt::Long qw(:config bundling); use Pod::Usage; +use POSIX qw(setlocale LC_CTYPE); use Safe; BEGIN { chdir dirname($0); } @@ -130,6 +131,10 @@ require Bugzilla::Install; Bugzilla->usage_mode(USAGE_MODE_CMDLINE); +# When we're running at the command line, we need to pick the right +# language before ever creating a template object. +$ENV{'HTTP_ACCEPT_LANGUAGE'} ||= setlocale(LC_CTYPE); + ########################################################################### # Check and update --LOCAL-- configuration ########################################################################### |