summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-03-28 20:15:42 +0100
committerlpsolit%gmail.com <>2008-03-28 20:15:42 +0100
commit1d505b299eca198af30c201f65a2cccd5dc6722e (patch)
treeea1a418b8e4a089b951dad129200e9246d91aa30 /checksetup.pl
parent1d08cb2f7abb8d56855ff05d68d3e803b7e66c38 (diff)
downloadbugzilla-1d505b299eca198af30c201f65a2cccd5dc6722e.tar.gz
bugzilla-1d505b299eca198af30c201f65a2cccd5dc6722e.tar.xz
Bug 425288: checksetup.pl displays messages using the first language available, alphabetically, rather than falling back to english if the desired language is not found - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=mkanat
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/checksetup.pl b/checksetup.pl
index b8f9e325b..d624c8775 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -47,14 +47,13 @@ use 5.008001;
use File::Basename;
use Getopt::Long qw(:config bundling);
use Pod::Usage;
-use POSIX qw(setlocale LC_CTYPE);
use Safe;
BEGIN { chdir dirname($0); }
use lib qw(. lib);
use Bugzilla::Constants;
use Bugzilla::Install::Requirements;
-use Bugzilla::Install::Util qw(install_string get_version_and_os);
+use Bugzilla::Install::Util qw(install_string get_version_and_os get_console_locale);
######################################################################
# Live Code
@@ -62,7 +61,7 @@ use Bugzilla::Install::Util qw(install_string get_version_and_os);
# 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);
+$ENV{'HTTP_ACCEPT_LANGUAGE'} ||= get_console_locale();
my %switch;
GetOptions(\%switch, 'help|h|?', 'check-modules', 'no-templates|t',