When installing the browser Opera from the .deb package, we find that the user interface (UI) is in perfect English, and it is not possible to change it to another language following the normal channels.
Let’s see how to configure the browser to display in Spanish:
We go to the following path, where the gnome startup icons of our apps are: /usr/share/applications.
Edit the Opera icon using sudo: sudo nano opera.desktop.
We have to edit all the “Exec” calls adding the parameter: --lang=es.
It should look something like this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| ❯ cat opera.desktop
[Desktop Entry]
Version=1.0
Name=Opera
GenericName=Web browser
Comment=Fast and secure web browser
TryExec=opera
Exec=opera --lang=es %U
Terminal=false
Icon=opera
Type=Application
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;application/x-opera-download;
Actions=new-window;new-private-window;
[Desktop Action new-window]
Name=New Window
Exec=opera --new-window --lang=es
TargetEnvironment=Unity
[Desktop Action new-private-window]
Name=New Private Window
Exec=opera --incognito --lang=es
TargetEnvironment=Unity
|
When you start the program again, it should display as expected :)