redromnon / HeroicBashLauncher

Directly launch any Epic Games Store and GOG game from anywhere without Heroic on Linux.
GNU General Public License v3.0
353 stars 17 forks source link

Change default launch language #87

Closed MrArdillo closed 2 years ago

MrArdillo commented 2 years ago

I want to play all my games on Spanish but i don't want to change it for every script so if i can put the language the first time the program launches

redromnon commented 2 years ago

I know there's a new feature in Heroic Beta that let's you specify the language for the game. I can use that for the scripts.

redromnon commented 2 years ago

Are you changing this line for Spanish? export LC_ALL=en_US.UTF-8

MrArdillo commented 2 years ago

Yes, but with that changed all come as en_US anyway and I need to change the line game per game

redromnon commented 2 years ago

Yeah, that's because HBL updates the script everytime you launch the game to check for any change in Heroic's settings. I'll work on this one.

redromnon commented 2 years ago

Can you try this build - https://github.com/redromnon/HeroicBashLauncher/actions/runs/2616490175 - and let me know if it works? You will need Heroic 2.4.0 Beta for this and enter the two-letter language code in the game's Other settings under Preferred Language like es in your case.

redromnon commented 2 years ago

Do note that only some Epic games support this. I think "Maneater" does.

MrArdillo commented 2 years ago

It seems to work but the problem is the same if i need to add the parameter for all the games one by one

redromnon commented 2 years ago

Yes. I don't see any global setting for that in Heroic. But it's a one-time step though.

MrArdillo commented 2 years ago

So after doing that all my scripts will execute the games in that language?

redromnon commented 2 years ago

I don't know, I haven't tested it thoroughly since I use English as my system local language.

MrArdillo commented 2 years ago

I'll try later batman arkham asylum and we'll see if it works

redromnon commented 2 years ago

Did you get it to work?

redromnon commented 2 years ago

Ok, so you don't need to specify the language setting for each game. HBL will now use the default language you've set for Heroic.

MrArdillo commented 2 years ago

Cool, sorry for the late answer but i can't tried it before

redromnon commented 2 years ago

Feature implemented in v2.8.0