Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
f0698869
Commit
f0698869
authored
Mar 31, 2008
by
wurblzap%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 425620 â checksetup.pl doesn't pick up the user's language correctly.
Patch by Marc Schumann <wurblzap@gmail.com>; r=LpSolit; a=LpSolit
parent
c5d9a35c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
Util.pm
Bugzilla/Install/Util.pm
+16
-1
No files found.
Bugzilla/Install/Util.pm
View file @
f0698869
...
...
@@ -295,7 +295,9 @@ sub _sort_accept_language {
}
sub
get_console_locale
{
require
Locale::
Language
;
my
$locale
=
setlocale
(
LC_CTYPE
);
my
$language
;
# Some distros set e.g. LC_CTYPE = fr_CH.UTF-8. We clean it up.
if
(
$locale
=~
/^([^\.]+)/
)
{
$locale
=
$1
;
...
...
@@ -304,8 +306,21 @@ sub get_console_locale {
# It's pretty sure that there is no language pack of the form fr-CH
# installed, so we also include fr as a wanted language.
if
(
$locale
=~
/^(\S+)\-/
)
{
$locale
.=
",$1"
;
$language
=
$1
;
$locale
.=
",$language"
;
}
else
{
$language
=
$locale
;
}
# Some OSs or distributions may have setlocale return a string of the form
# German_Germany.1252 (this example taken from a Windows XP system), which
# is unsuitable for our needs because Bugzilla works on language codes.
# We try and convert them here.
if
(
$language
=
Locale::Language::
language2code
(
$language
))
{
$locale
.=
",$language"
;
}
return
$locale
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment