XH300 – langage trouble
Erreur de langage lors de l’utilisation du XH300
Demande initiale de Regis
Hello,
I’ve sold two XH300 10 inches to a customer in order to display pages from Loxone PLC embedded web server.
Loxone is a manufacturer of PLC for building application. Smart Homes et Smart Buildings : solution domotique et immotique Loxone
As the Loxone web server is multilingual, the displayed language is defined automatically by the web client language (Our XH300).
In this case, as the customer has only the possibility to choose between English or German, the Loxone displays pages in English…
Is there a workaround in order to force the Loxone to displays pages in French?
Reponse
Hi
Yes, I see.
Sorry, currently the browser reports always the language “en-US” to the webserver.
I’ll make a ticket to improve this in a future version.
As work around I’ve made a “etn-startup.sh” script to add an environment variable to the browser’s user to change the language to “fr-FR”
This script has only to be executed once on a device.
Stepps:
1- Enable USB, and USB autostart

2- Create the script “etn-startup.sh” on a FAT32 formatted USB-drive. (only use LF as line separator not windows-style CR +LF !)

#!/bin/bash
sudo su - etn-browser -c "echo 'export QTWEBENGINE_CHROMIUM_FLAGS=--lang=fr-FR' >> .profile"
sudo /etc/init.d/etn-browser.sh restart
3- Connect the usb drive to the device once.
4- Remove USB drive, disable USB and USB autostart again and reboot the device.
5- The browse no reports language “fr-FR” to the web site.