protonscr

Trine 2 - "Can't set locale to 'en_GB'"

steamclosed reviewed3rd party gamelocalizationNeed Retest
ValveSoftware/steam-for-linux#1780 · opened 2013-02-15 by PhilipWitte · updated 2017-05-08 · 13 comments · github
PPhilipWitte 2013-02-15 github

I'm using Arch Linux 64, Catalyst 13.1, and Gnome-Shell 3.6.3
Everything on this system has be setup correctly, and my default locale is set to 'en_US.utf8'

The Trine 2 launcher has a major bug. It opens fine, but as soon as I click on anything in my system after that, Trine 2 GUI or otherwise (basically on any click event) an error alert pops up saying "Error: Can't set locale to 'en_GB'"

The Trine 2 launcher takes up ~100% of my 4 core AMD Phenom II, so I'm not sure what's going on. The only way I can quit it is through the system-monitor (or terminal) and I cannot play the game.

I have tried launching steam in the following ways, to no avail:

$ LC_ALL=en_US.UTF-8 steam
$ LC_ALL=en_US.utf8 steam
$ LANG=en_US.utf8 steam
$ LANG=C steam

Ggdrewb-valve maintainer 2013-02-15 github

Have you reported this to the game developer? They would be better able to check what's going on within the game.

PPhilipWitte 2013-02-15 github

No i have not, I was direct to this Github page from #archlinux. I will try reporting upstream.

EEJahren 2013-02-23 github

I had this problem, the reason was that en_GB locale was not enabled. See https://wiki.archlinux.org/index.php/Locale to see how to enable it.

What you need to do is to edit /etc/locale.gen to uncomment the line

en_GB.UTF-8 UTF-8

and run

locale-gen

You can check that en_GB.UTF-8 is enabled by running:

locale -a

which lists all enabled locales.

PPhilipWitte 2013-02-24 github

@HaskellElephant

I have already done those steps when I first installed Arch. As far as I know, my Locale is setup correctly.
The result of '$ locale -a' is:

C
en_US.utf8
POSIX
EEJahren 2013-02-24 github

Yes, that is correct, but the Trine 2 launcher is asking to set the locale to en_GB.utf8 but failing since that is not one of your allowed locales, if you add en_GB to that list it will work (although you might have other problems).

PPhilipWitte 2013-02-24 github

Okay great, adding en_GB stopped the error messages from popping up. However, the launcher still messes up. Now when I click on a menu (drop-down list), it will open the menu, but then just flashes (white) on every click after that, and I have to force-quit it thought the system-monitor.

Any suggestions? Maybe I need to restart my system. Will try and let you know if that helps at all.

EEJahren 2013-02-24 github

Yea, the menu is a bit messed up, what I did was to edit the last line of ~/.local/share/Steam/SteamApps/common/Trine\ 2/trine2.sh so that instaid of
running

nohup ./bin/trine2_linux_launcher_32bit >/dev/null &

it runs

./bin/trine2_linux_32bit

That way it bypasses the launcher and starts the game. If you need to edit the settings, that
can be done manually by editing ~/.frozenbyte/Trine2/options.txt.

PPhilipWitte 2013-02-24 github

Awesome, thanks for the tips. I will try bypassing the launcher and setting things with GEdit :)

PPhilipWitte 2013-02-24 github

hmmm... my Trine2 settings file doesn't have much info in it. How you you customize the resolution, etc?

PPhilipWitte 2013-02-24 github

Nevermind, figured it out. If anyone is reading this having the same problem, just open Trine2 after following HaskellElephant's steps, and it will generate a 'options.txt' file for you. Close Trine2, then you can edit the details of that options file, then relaunch.

Kkisak-valve maintainer 2017-04-06 github

Hello @PhilipWitte, are you still experiencing this issue with an up to date system?

PPhilipWitte 2017-04-06 github

Holy crap, it's been awhile. I don't have the same PC hardware, and I'm running Arch-based Linux with KDE 5 on my main PCs now. I can run a test for you after work tonight too see if this issue still exists. Will report back soon.

Kkisak-valve maintainer 2017-05-08 github

Closing pending feedback.

Nothing extracted yet.