From ba5a5c404b8ef0b71efd873e604184ab90ebff94 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sat, 17 Mar 2007 21:13:34 +0000 Subject: Bug 374227: Create a system for localizing basic installation strings Patch By Max Kanat-Alexander (module owner) a=mkanat --- checksetup.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'checksetup.pl') 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 ########################################################################### -- cgit v1.2.3-24-g4f1b