Ticket #26073: 0001-bug-26073-Migrate-general.useragent.locale-to-intl.l.patch

File 0001-bug-26073-Migrate-general.useragent.locale-to-intl.l.patch, 1.6 KB (added by igt0, 17 months ago)
  • projects/tor-browser/build

    From 3ce384fb299cd55b676a6a17ba4323230afd6bfe Mon Sep 17 00:00:00 2001
    From: Igor Oliveira <igt0@torproject.org>
    Date: Wed, 23 May 2018 12:12:01 -0300
    Subject: [PATCH] bug 26073: Migrate general.useragent.locale to
     intl.locale.requested
    
    intl.locale.requested is the new way that Gecko handles locales.
    ---
     projects/tor-browser/build | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/projects/tor-browser/build b/projects/tor-browser/build
    index c542818..4d1be00 100644
    a b cp defaults/preferences/000-tor-browser.js $rootdir 
    194194  rm -rf chrome
    195195[% END %]
    196196# Set the locale of the bundle.
    197 echo "pref(\"general.useragent.locale\", \"en-US\");" >> defaults/preferences/000-tor-browser.js
     197echo "pref(\"intl.locale.requested\", \"en-US\");" >> defaults/preferences/000-tor-browser.js
    198198[% c("var/touch") %] defaults/preferences/000-tor-browser.js
    199199zip -Xm omni.ja defaults/preferences/000-tor-browser.js
    200200rm -rf defaults
    cp $rootdir/[% c('input_files_by_name/firefox') %]/mar-tools-*.zip "$OUTDIR"/ 
    325325      mkdir -p defaults/preferences
    326326      cp $rootdir/000-tor-browser.js defaults/preferences/
    327327      # Set the locale of the bundle.
    328       echo "pref(\"general.useragent.locale\", \"[% lang %]\");" >> defaults/preferences/000-tor-browser.js
     328      echo "pref(\"intl.locale.requested\", \"[% lang %]\");" >> defaults/preferences/000-tor-browser.js
    329329      [% c("var/touch") %] defaults/preferences/000-tor-browser.js
    330330      zip -Xm omni.ja defaults/preferences/000-tor-browser.js
    331331      rm -rf defaults