5

I am a developer of Safe Eyes (an app that reminds you to blink eyes to prevent eye strain), and someone requested a feature that they want to open the app in Spanish, while the system language for all other apps is set to be English.

The app has already been translated to many languages, and would change its language if the system language is changed to Spanish.

When the Spanish language pack is already installed, is there any way the app can be launched in a Spanish while the system language is still English? Maybe with some environment variable while running the app?


In case you need to test the app to provide an answer, you can use the official PPA in Ubuntu 24.04 (or use the package from official repositories on previous versions of Ubuntu), as the official repository version in broken in 24.04:

sudo add-apt-repository ppa:safeeyes-team/safeeyes

And sudo apt install safeeyes

4
  • 1
    Using LANG=es_ES.UTF-8 gnome-clocks and LANG=ja_JP.UTF-8 gnome-calendar in an Arch Linux system: i.sstatic.net/fzE1OSk6.png
    – muru
    Commented Aug 11 at 16:14
  • @user68186 That is a known issue (askubuntu.com/q/1511628/124466). Solution is to use the updated version from the official PPA. It does not work with Ubuntu 24.04 because the previous version did not work with python3.12, and the new version did not get in before Ubuntu's package freeze Commented Aug 11 at 19:52
  • LANG=es_ES.UTF-8 safeeyes works in Arch after enabling the spanish locale . Let me test it in ubuntu. Please write that as an answer and I will accept it Commented Aug 11 at 20:04
  • I just verified that it works in Kubuntu 24.04 Commented Aug 11 at 20:21

1 Answer 1

5

Enable Spanish Locale

Go to Settings > System > Region and Languages > Manage Installed Language > Install / Remove Languages. Select Spanish.

Region and Language Settings

Use the LANG Variable to start Safe Eyes from the terminal:

LANG=es_ES.UTF-8 safeeyes

The configuration should now be in Spanish:

Safe Eyes config in Spanish

The breaks should also be in Spanish:

enter image description here

Make Spanish the default

Open the app called Startup Applications and look for Safe Eyes:

enter image description here

Select Safe Eyes from the left panel and Click on the Edit button on the right. Add LANG=es_ES.UTF-8 to the Command section before safeeyes as shown below:

enter image description here

Save and close the app. Logout and log back in to automatically start Safe Eyes in Spanish.

Hope this helps

2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .