Skip to content
This repository has been archived by the owner on Feb 13, 2021. It is now read-only.
Nikolay Bogoychev edited this page Sep 22, 2020 · 8 revisions

Mozill Firefox with Bergamot Integration

  • go to about:config in the URL field
  • set browser.translation.ui.show to true
  • set browser.translation.detectLanguage to true

Build Instructions

Follow these: https://firefox-source-docs.mozilla.org/setup/linux_build.html

Ubuntu 16.04

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

Arch Linux (report from Nick)

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 to std::size_t to make my newer compiler happy.

Debian buster (Andreas)

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

MTS Port

Firefox uses 8787 for inbound and 8788 for outbound. For reference: https://github.com/browsermt/firefox/blob/523446b472606115abde1f8461db39964e878a31/browser/components/translation/BergamotTranslator.jsm#L33