Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Firefox The Internet

Firefox To Get Page Translation Feature, Like Chrome (zdnet.com) 50

An anonymous reader writes: Mozilla developers are working on adding an automatic page translation feature to Firefox, similar to the one included in Google Chrome. However, Firefox's page translation feature will be different from the one supported in Google Chrome. Instead of relying on cloud-based text translation services (like Google Translate, Bing Translator, or Yandex.Translate), Firefox will use a client-side, machine learning-based translation library, currently being developed part of the Bergamot Project, which received $3.35 million in EU funding from the European Union's Horizon 2020 research and innovation programme.
This discussion has been archived. No new comments can be posted.

Firefox To Get Page Translation Feature, Like Chrome

Comments Filter:
  • !cloud == privacy (Score:5, Informative)

    by Chromal ( 56550 ) on Tuesday October 22, 2019 @01:38PM (#59335790)
    This is a nice privacy feature and should be more resilient in the long term than any corporate cloud service.
    • This is a nice privacy feature and should be more resilient in the long term than any corporate cloud service.

      True, but it will add even more bloat just to provide something probably used rarely by individuals.

      • Depends, it implemented as a shared library it would only be loaded if necessary and not introduce any bloat for people not using the feature.
        • Depends, it implemented as a shared library it would only be loaded if necessary and not introduce any bloat for people not using the feature.

          It wouldn't be loaded into RAM, but the shared library would still reside on disk.

      • True, but it will add even more bloat just to provide something probably used rarely by individuals.

        It's becoming more relevant all the time, as countries which don't speak English put more useful data online. I only wish they'd make it an addon, even if bundled, so that I could remove it from installs where I don't need it.

        • by KPU ( 118762 )

          Would you be interested in joining a user study? The difficulty with addons is that WebAssembly doesn't support vector instructions over 128 bits wide, which make neural machine translation's matrix operations faster.

        • It's open source.

          Since I do this often, he's how to quickly do it on Gentoo:
          1. Unpack the source package to some directory "a". (This is quickly done with: ebuild $(equery w firefox) prepare, and then renaming whatever is in /var/tmp/portage/*/*/work.)
          2. Make a copy in "b".
          3. Search the version management of the project of a commit that added what you want to get rid of, and download it as a patch.
          4. Reverse-apply the patch to "b", using the "patch" tool. *fingers crossed*
          5. Manually edit "b" to change what

          • I used to run Gentoo back when I had a K6, and I had some reason why I needed a special build for performance reasons. But the last time I tried it, using even just a couple of USE flags meant the install failed, and the USE flags are the whole reason why I wanted to run gentoo, so I gave up on it. I'm not going to fight with the fucking install when there are so many distributions that actually work.

      • I can guarantee you, that it will be the most used feature in the world! Even more than ad blocking.

        Only anglophone countries (and maybe Spanish and Chinese ones) can afford to not use sites from other languages. (Many laguages have comparatively small communities.)

        E.g. in German, questions on forums / bulletin boards *always* get *completely* derailed. By pointing out nitpicky side-topic problems, going off on meta-discussions, giving stupid and useless answers, often including deliberate non-common-sense

      • >"True, but it will add even more bloat just to provide something probably used rarely by individuals."

        +1000

        It sounds like a great feature. But Mozilla- PLEASE make stuff like this ADDONS. We don't need or want everything "included" or "integrated" into the core browser. Remember your Firefox missions (as I have always known them)- SMALL, fast, standards-compliant, secure, open development and source, private, configurable, multiplatform. All those objectives are important.

        Additional code that can't

        • by KPU ( 118762 )

          Our current launch plan is browser addon or plugin. That got lost in the news articles. I'm the project coordinator.

          • >"Our current launch plan is browser addon or plugin. That got lost in the news articles. I'm the project coordinator."

            Thanks for the info, and the good news, too. It is nice to see people actually in the project posting to Slashdot. And yeah, lots of articles (and especially Slashdot titles and summaries) get info wrong, omit info, or are misleading (slanted).

            It sounds like some GREAT ideas. Just because it isn't something I would use much doesn't mean I don't support it- a LOT of people will find it

      • by rtb61 ( 674572 )

        Accuracy would change use. The more accurate the translation, the less likely companies will produce multiple different language web sites. Built into your browser with a flag on the web page and you download and store that translation for that use and future uses. The savings for web companies huge, only have to deal with one language but they would have to avoid using text in an image.

        Forums could be real interesting, you text translated and inserted as you read other language comments in your language, r

    • You can bet on the average user not giving a shit about privacy, and only focusing on the client-side translator sucking major ass compared to Google's cloud-based privacy nightmare of an offering.

    • by Z00L00K ( 682162 )

      The question here is - who do the translation, and who profits from it?

      If I want something specifically translated then I can do that already from Google Translate.

      I want more privacy built in rather than flashy features. If the browser would keep third party cookies and similar stuff in a different container depending on main site so that different contexts would be isolated from each other. No way for cross site tracking then.

    • Hopefully they also extend it to the inline pdf-browser. One major problem with this feature in Chrome is that it doesn't work with pdf-files. Post the link to a pdf to the Google translate page and it works so why they never bothered to implement it in Chrome is beyond me.
      • Re:!cloud == privacy (Score:5, Informative)

        by KPU ( 118762 ) on Tuesday October 22, 2019 @03:16PM (#59336284) Homepage

        That's a good suggestion! The main difficulty with PDF files is you have to reassemble soft-returns into sentences (but not hard returns), possibly OCR, avoid page numbers in the middle of things, etc. It's doable with heuristics but a lot more software is involved.

  • My biggest complaint with Firefox is its spell checker. I am not a proficient speller, and I will often get some simple word wrong. Where I try to select the word and get suggestions they give me results that are not even close phonetically (eg it gave me parenthetically). It is often to a point I will google search my misspelling to get the appropriate correct word spelling.

    Perhaps because I am an english speaker, so most pages are in english, and translating a website isn't the big of need.

    • My biggest complaint with Firefox is its spell checker. I am not a proficient speller, and I will often get some simple word wrong. Where I try to select the word and get suggestions they give me results that are not even close phonetically (eg it gave me parenthetically). It is often to a point I will google search my misspelling to get the appropriate correct word spelling.

      Perhaps because I am an English speaker, so most pages are in English, and translating a website isn't that big of [a] need.

      You were certainly correct on getting the simple word wrong.

      Not that I'm a particularly good speller myself (and will freely admit that my grammar can be downright atrocious) but I just couldn't resist.

      • The problem with english is its exceptions. Here in this sentence "english" is not even red underlined. So it is English ... I did not learn that in school. I learned it in /. posts, german on the other hand is red underlined ... no idea why it is not the same (well it is Chrome, which for some absurd reason claims it would use the OS spell checking, but does not.

        Anyway: that "a language" is a name and needs/should be capitalized is not obvious.

    • Languagetool is an advanced checker with support for grammar checking [languagetool.org].

      The big advantages:
      - you can install it locally [languagetool.org]
      - the firefox extension can be pointed [mozilla.org] to this local installation

      • A third party tool...
        So what will it send over to the cloud for analysis.

        I have some amount of trust in Mozilla to keep my data private, but not for any 3rd party add in.

    • In Germany, Firefox is the most popular browser. That dictionary is used in a lot of other software too.

      And it single-handedly ruined the German language!

      See, im German, a multi-word term is *never EVER* written with spaces. You always use compound words (simply sticking them after each other), or if that gets too large and confusing, you may use a dash. On line breaks, you use a dash too. That is *not optional*.

      Yet, what that spell checker / dictionary does, is whenever it does not know a compound word (wh

      • Write a post about not making mistakes while writing ... and you're sure it WILL be full of them. XD

        Why does Slashdot not have a preview function on mobile though? I know it is a zombie site, but come on!

      • by KPU ( 118762 )

        I can't speak to the spellchecker. But the translation system is able to handle German compounds via Byte Pair Encoding: https://github.com/rsennrich/s... [github.com] .

      • You always use compound words
        That is no longer true since "Rechtschreibreform". Especially if you translate from foreign languages it is perfectly legal to translate software system as "Software System".

        However I agree with you about the other mess ... I don't really need spell checker for german, or in other words, I don't care if I make a typo. But for foreign languages it is quite important that it works.

  • Bad title (Score:4, Insightful)

    by jijitus ( 1478465 ) on Tuesday October 22, 2019 @01:42PM (#59335816)

    "Firefox to get offline page translation feature - unlike Chrome"
    There you go.

  • by twocows ( 1216842 ) on Tuesday October 22, 2019 @02:26PM (#59336046)
    Assuming it's licensed the same way Firefox is, that's pretty cool. Hopefully that means we'll have access to a FOSS offline translation library that people can help improve and potentially even use in different projects.
    • Re:Useful (Score:5, Informative)

      by KPU ( 118762 ) on Tuesday October 22, 2019 @03:05PM (#59336236) Homepage

      It is and will be FOSS with an API that allows integration outside Firefox. The code is a combination of Mozilla Public License and Marian https://marian-nmt.github.io/ [github.io] under MIT license, as well as software to be written. Follow our code on https://github.com/browsermt/ [github.com] and https://github.com/marian-nmt/... [github.com] .

      I coordinate the Bergamot project.

      • by olau ( 314197 )

        It sounds neat. Do you have any examples of translations anywhere?

        I can only find information about translation speed where this combination will be at an instant advantage compared to Google that has to contact a server somewhere.

        But as far I am aware translation is not a completely solved problem yet so it's pretty important how well it is actually doing in practice?

  • Hopefully maybe the translation are better that translate.google.com otherwise I really am not seeing to much of a difference.
  • I just downloaded Firefox Nightly, and only see translation features for Bing, Google. and Yandex, and nothing else.

  • by Ghostworks ( 991012 ) on Tuesday October 22, 2019 @03:57PM (#59336422)

    This is one of numerous features -- like phishing protection -- which would be great as an official extension for people that actually want it, easily uninstalled for people who don't.

    (A reminder that the classic extension model wasn't just about piling on new crap: it was also about opting out of things that are useless to you for a leaner browser.)

    • This was my first thought. Large, complex stuff is still being integrated at the core level, while simple things (even those that a large number of people want) require extensions.

    • by KPU ( 118762 )

      We've been debating a few integration options including an extension, a plugin with an install on first usage, or a captive process that Firefox launches and communicates with. Part of this depends on how much performance we can get out of WebAssembly vs native C++ code with CPU-specific routines. I'm the project coordinator.

  • Which languages does it support?

    Hungarian ? ("My hovercraft is full of eels.")

    Ukrainian (I would like you to do us a favor, Though.)

    Esperanto (Oh wait, thats not a language, thats the Secretary of Defense

  • ... statement:

    HELL YES! OOOH YEAAH! FIREFOX 1, CHROME 0. CHECK AND MATE, BABY!

    *corrects collar with both hands*

    I do hope you find my deliberations fruitful and reasonable.

  • I had to giggle when I followed the link through to https://browser.mt/software [browser.mt] and saw the section with the contributions by Mozilla... (text bolded by me)

    Mozilla Firefox, popular web browser.
    Deep Speech: Deep Leaning STT Engine, localizable speech-to-text engine that uses deep learning techniques to transcribe speech to text. It has more than 9,400 stars, and over 1,600 forks on GitHub repository.
    TTS: Deep Leaning TTS Engine, Localizable text-to-speech engine that uses deep learning techniques to s
  • yaaaa, More builtin firefox bloat, just what everyone has been screaming for.
  • This is a *good* thing. I have tried all the existing translation extensions for Firefox and none of them work as well as the built-in Chrome translator for the range of Japanese web pages (especially forms) that I need to translate into English.

    Using the Google Translate website via Firefox is inconvenient and also fails for content where the built-in Chrome translator just works.

    I am hoping the Firefox translator will fix these problem.

He has not acquired a fortune; the fortune has acquired him. -- Bion

Working...