summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-03-17 22:13:34 +0100
committermkanat%bugzilla.org <>2007-03-17 22:13:34 +0100
commitba5a5c404b8ef0b71efd873e604184ab90ebff94 (patch)
tree1e6369d1daf4649bec1e44e8917978a071764cd7 /checksetup.pl
parentaf5161076a754d2d66ba8178d4fcce331eedd588 (diff)
downloadbugzilla-ba5a5c404b8ef0b71efd873e604184ab90ebff94.tar.gz
bugzilla-ba5a5c404b8ef0b71efd873e604184ab90ebff94.tar.xz
Bug 374227: Create a system for localizing basic installation strings
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 5e684db0a..aff7bb796 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -62,6 +62,10 @@ require 5.008001 if ON_WINDOWS; # for CGI 2.93 or higher
# Live Code
######################################################################
+# When we're running at the command line, we need to pick the right
+# language before ever displaying any string.
+$ENV{'HTTP_ACCEPT_LANGUAGE'} ||= setlocale(LC_CTYPE);
+
my %switch;
GetOptions(\%switch, 'help|h|?', 'check-modules', 'no-templates|t',
'verbose|v|no-silent', 'make-admin=s');
@@ -116,10 +120,6 @@ Bugzilla->usage_mode(USAGE_MODE_CMDLINE);
Bugzilla->installation_mode(INSTALLATION_MODE_NON_INTERACTIVE) if $answers_file;
Bugzilla->installation_answers($answers_file);
-# 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
###########################################################################