Comments (24)
It might make sense to add a /boot/chromium.txt
which would hold the chromium command execution settings. PRs are welcome
from fullpageos.
The easyest solution is to add a meta to your html page : <meta name="google" content="notranslate">
from fullpageos.
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.
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.
Put —incognito
to chromium parameters.
from fullpageos.
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.
I would try adding --disable-translate when running chromium from the command line
from fullpageos.
Also happened. Chrome detected my country and offered "CZ-cs" content translate to "EN".
Still not fixed.
from fullpageos.
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.
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.
I can't put --incognito
as a default option to all users. You are welcome to put --incognito
in your own installation.
from fullpageos.
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.
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.
from fullpageos.
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.
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.
I can edit the image.
Thats the point of this repo :)
from fullpageos.
Ok, understood now :)
from fullpageos.
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
tohome/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.
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.
Hey, just saw this now because you pull requested to your own repo and no to this repo.
- can you provie a
build.log
? - You can try adding your changes to
end_chroot_script
and notstart_chroot_script
the might be overwritten, but I am guessing without seeing the build.log.
from fullpageos.
@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.
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.
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)
- FullPageOS 0.14.0 RC1 status HOT 11
- Otot.tv outdated HOT 4
- Website requires Google Sign in to access HOT 3
- Can't get composite out for FullPage OS 0.13.0 HOT 1
- Unable to rotate touch screen HOT 2
- Trying to get a Rapsberry Pi 3 Model B to Rotate 90 degrees Fullpage OS on a Raspberry PI 7" Touchpanel HOT 3
- Can not find the file fullpageOS.txt in /boot
- Disable default shortcuts HOT 1
- Auto Non Functional HOT 1
- Timeout / Lockout HOT 4
- My FullscreenOS SetUp has an active Screensaver - how to disable? HOT 3
- Custom Splash screen only working for 1 frame then default red FULLPAGEOS splash is displayed until boot finish HOT 1
- DISPLAY_ORIENTATION Not working on Bullseye Stable Build HOT 8
- no boot erro on screen HOT 3
- Stuck at shell on 3.5in GPIO touchscreen
- Embedded video playback HOT 5
- Grafana not loading, possible old chromium version? HOT 4
- FullPageOS is staying on the splash screen. HOT 3
- WiFi not working / SSH on LAN not enabled HOT 6
- x11vnc will fail on no-default pi user needs to be changed to be user-independent HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fullpageos.