aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-09-14 13:57:29 +0000
committermkanat%bugzilla.org <>2006-09-14 13:57:29 +0000
commit761ae5de8e84ffd70489260364db5789ec135b55 (patch)
treea488a2e5b3605444791ba414dde70ee6292e1cab /checksetup.pl
parentBug 277502: Re-organize checksetup.pl to be understood more easily (make it a... (diff)
downloadbugzilla-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-xchecksetup.pl5
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
###########################################################################