-
Notifications
You must be signed in to change notification settings - Fork 2
Home
- go to about:config in the URL field
- set browser.translation.ui.show to true
- set browser.translation.detectLanguage to true
Follow these: https://firefox-source-docs.mozilla.org/setup/linux_build.html
Works with
./mach bootstrap
echo "export CC=${HOME}/.mozbuild/clang/bin/clang" > mozconfig
echo "export CXX=${HOME}/.mozbuild/clang/bin/clang++" >> mozconfig
./mach build
./mach run
Personally, I had to disable sandboxing when compiling, because of some access violation. This was done by adding
ac_add_options --disable-sandbox
to the compilation config.I also had to change some
size_t
tostd::size_t
to make my newer compiler happy.
build and install gtk+ 3.20.10 https://download.gnome.org/sources/gtk+/3.20/gtk+-3.20.10.tar.xz (I got errors the debian version of gtk3+ was too low) NOTE: installing gtk+3.20 seems to break some debian stuff (nautilus) - so ideally don't do a blunt "make install". I personally made make uninstall afterwards to fix nautilus. Then git clone firefox repo branch from github
./mach build
./mach run
Firefox uses 8787
for inbound and 8788
for outbound. For reference: https://github.com/browsermt/firefox/blob/523446b472606115abde1f8461db39964e878a31/browser/components/translation/BergamotTranslator.jsm#L33