Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
afd75f0d
Commit
afd75f0d
authored
Oct 15, 2014
by
Tails developers
Browse files
Get browser locale set by the new browser localization code.
parent
db2517c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
config/chroot_local-includes/usr/local/bin/tor-browser
View file @
afd75f0d
...
...
@@ -34,7 +34,7 @@ tor_has_bootstrapped() {
# the profile.
enable_localized_searchplugins
()
{
local
locale
locale
=
$(
cat
/var/lib/tails-user-session/browser-
locale.js |
\
locale
=
$(
cat
"
${
PROFILE
}
"
/preferences/0000
locale.js |
\
sed
's@^pref("general\.useragent\.locale", "\([^"]*\)");$@\1@'
)
if
[
"
${
locale
}
"
=
en-US
]
;
then
return
...
...
Write
Preview
Supports
Markdown
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