Skip to content

Commit

Permalink
Bug 26073: Migrate general.useragent.locale to intl.locale.requested
Browse files Browse the repository at this point in the history
intl.locale.requested is the new way that Gecko handles locales.
  • Loading branch information
Igor Oliveira committed May 25, 2018
1 parent 6b27579 commit d4f2620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/tor-browser/build
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ cp defaults/preferences/000-tor-browser.js $rootdir
rm -rf chrome
[% END %]
# Set the locale of the bundle.
echo "pref(\"general.useragent.locale\", \"en-US\");" >> defaults/preferences/000-tor-browser.js
echo "pref(\"intl.locale.requested\", \"en-US\");" >> defaults/preferences/000-tor-browser.js
[% c("var/touch") %] defaults/preferences/000-tor-browser.js
zip -Xm omni.ja defaults/preferences/000-tor-browser.js
rm -rf defaults
Expand Down Expand Up @@ -325,7 +325,7 @@ cp $rootdir/[% c('input_files_by_name/firefox') %]/mar-tools-*.zip "$OUTDIR"/
mkdir -p defaults/preferences
cp $rootdir/000-tor-browser.js defaults/preferences/
# Set the locale of the bundle.
echo "pref(\"general.useragent.locale\", \"[% lang %]\");" >> defaults/preferences/000-tor-browser.js
echo "pref(\"intl.locale.requested\", \"[% lang %]\");" >> defaults/preferences/000-tor-browser.js
[% c("var/touch") %] defaults/preferences/000-tor-browser.js
zip -Xm omni.ja defaults/preferences/000-tor-browser.js
rm -rf defaults
Expand Down

0 comments on commit d4f2620

Please sign in to comment.