Git Product home page Git Product logo

Comments (24)

guysoft avatar guysoft commented on September 24, 2024 3

It might make sense to add a /boot/chromium.txt which would hold the chromium command execution settings. PRs are welcome

from fullpageos.

christophe77 avatar christophe77 commented on September 24, 2024 3

The easyest solution is to add a meta to your html page : <meta name="google" content="notranslate">

from fullpageos.

Kevinsky86 avatar Kevinsky86 commented on September 24, 2024 2

in /home/pi/script/start_chromium_browser data put this parameter to startup "--disable-features=TranslateUI" and the message is away

This Git thread is Google's top search result when you look for this, so for the purpose general interest i'm posting a reply in this topic.
This variable has been renamed from TranslateUI to just Translate.

If /home/pi/script/start_chromium_browser data is adjusted accordingly and FullpageOS is subsequently restarted the translate bubble goes away.

from fullpageos.

marians avatar marians commented on September 24, 2024 1

Has anyone had success in suppressing the translate tool? I am running into this problem, too.

I've been looking for info on how to configure chromium so that it wouldn't show a translation tool. I found the language settings in this answer: https://unix.stackexchange.com/a/6223

Unfortunately I am lacking knowledge on how to apply that setting so that it actually sticks. Adding that "intl" key in /home/pi/.config/chromium/Default/Preferences had no effect for me. It was gone/overwritten after killing chromium. Would be glad for a hint here.

In addition I found https://cs.chromium.org/chromium/src/components/translate/core/browser/translate_prefs.cc which lists preferences keys that affect translation. Here translate_blocked_languages looks especially promising. But, same problem as above, I don't know how to inject that setting.

Another answer on the stackexchange page mentioned above suggests to install the chromium-browser-l10n package to localize chromium. However I couldn't test that, as the package couldn't be found by apt-get.

from fullpageos.

petrleocompel avatar petrleocompel commented on September 24, 2024 1

Put —incognito to chromium parameters.

from fullpageos.

petrleocompel avatar petrleocompel commented on September 24, 2024 1

You didn’t understand me. ☺️
I know you can. I know I don’t want to put there an --incognito option as default. But I’m trying to help that guy with translate popup. How to fix it on his running instance.

I promised pull request for chromium options, but of course company in which I work didn’t give time to make it. We have only 12 running instances and I configured it only once so nobody touched that for a while.

Once I will make another installation I will make pull request.

from fullpageos.

tailorvj avatar tailorvj commented on September 24, 2024

I would try adding --disable-translate when running chromium from the command line

from fullpageos.

petrleocompel avatar petrleocompel commented on September 24, 2024

Also happened. Chrome detected my country and offered "CZ-cs" content translate to "EN".
Still not fixed.

from fullpageos.

guysoft avatar guysoft commented on September 24, 2024

Looks like --disable-translate was removed from chromium.
So we can't disable it via commandline

However here are instructions how to disable it from chromium.

from fullpageos.

petrleocompel avatar petrleocompel commented on September 24, 2024

OK, but if you startup chromium in incognito mode it does not show up.
So i would recommend to add --incognito. Because i really dont have input on my screens.

from fullpageos.

guysoft avatar guysoft commented on September 24, 2024

I can't put --incognito as a default option to all users. You are welcome to put --incognito in your own installation.

from fullpageos.

petrleocompel avatar petrleocompel commented on September 24, 2024

I understand. Then would be nice to have some override to scripts from boot partition. Because do this on every installation is a lot of work. Or I missed something?

from fullpageos.

petrleocompel avatar petrleocompel commented on September 24, 2024

So ok /boot/chromium.txt should hold command execution settings. (I'll make pull request later next week)

But maybe it will be much helpfull to add some first-time init script.
Because today i discovered problem with different timezone on system.
It would be great have /boot/(install|setup).sh which will be executed to configure system.
Or maybe I'm just missing timezone configuration.

from fullpageos.

guysoft avatar guysoft commented on September 24, 2024

from fullpageos.

guysoft avatar guysoft commented on September 24, 2024

Thanks for the input guys!
If you could tell me what needs to go where, I can add it to the build.
The —incognito solution is good for users, but I can't ship like that because then logins would not be stored.

from fullpageos.

petrleocompel avatar petrleocompel commented on September 24, 2024

I suggest it only as run option for running instance not to modify image.

I have customized script which I use to configure my instances. Easier than editing image.

from fullpageos.

guysoft avatar guysoft commented on September 24, 2024

I can edit the image.
Thats the point of this repo :)

from fullpageos.

guysoft avatar guysoft commented on September 24, 2024

Ok, understood now :)

from fullpageos.

marians avatar marians commented on September 24, 2024

This is what seems to have solved the problem for me for now, for German web content:

  • Installed locales-all package
  • set the locale to de_DE.UTF-8
  • Added export LC_ALL=de_DE.UTF-8 to home/pi/.profile. Not sure if that was needed.
  • rebooted

Still looking for a way to pre-configure this, ideally based on FULLPAGEOS_OVERRIDE_LOCALE.

from fullpageos.

marians avatar marians commented on September 24, 2024

I need some help with the change to apply the locale setting and make the Chromium translate tool disappear.

Here are my changes: netzbegruenung#1

As you can see here I am trying to modify /home/pi/.profile, but it doesn't work. In the final image, the file is untouched. Any idea what I would need to change?

from fullpageos.

guysoft avatar guysoft commented on September 24, 2024

Hey, just saw this now because you pull requested to your own repo and no to this repo.

  1. can you provie a build.log?
  2. You can try adding your changes to end_chroot_script and not start_chroot_script the might be overwritten, but I am guessing without seeing the build.log.

from fullpageos.

marians avatar marians commented on September 24, 2024

@guysoft I am preparing the PR to the devel branch in our own forked repo first.

Thanks for the hint regarding end_chroot_script!

Where does build.log end up? Or are you talking about the terminal output?

from fullpageos.

guysoft avatar guysoft commented on September 24, 2024

build.log is by default output in the path where you run the build command. If you are using vagrant thats the path of the src folder of your distro. is set at src/build (in CustomPiOS)
[ -n "$LOG" ] || LOG="build.log"

from fullpageos.

jppicture avatar jppicture commented on September 24, 2024

in /home/pi/script/start_chromium_browser data put this parameter to startup "--disable-features=TranslateUI" and the message is away

from fullpageos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.