Posted December 30, 2016
Edit the 'script' file to get rid of the if statements and non-Polish sections, so rather than a structure like this:
stuff
check the system language
if the language is English
set the game language to English
start the game
...
if the language is Polish
set the game language to Polish
start the game
...
You just have:
#!/bin/bash
echo "Running lang: Polish"
cd "game/Divinity - Original Sin.app/Contents/Data/Localization"
sed -i.bu 's/id="Value" value=".*"/id="Value" value="Polish" type="20"/g' language.lsx
rm -rf *.bu
cd "../../../../.."
open "game/Divinity - Original Sin.app"
Alternately, you can also delete the lines where it sets the language to Polish, and just set that once in the /Contents/Data/Loclaization/language.lsx file. The script file would then just be:
#!/bin/bash
#run game
open "game/Divinity - Original Sin.app"
How to change the language (gog, mac)?
stuff
check the system language
if the language is English
set the game language to English
start the game
...
if the language is Polish
set the game language to Polish
start the game
...
You just have:
#!/bin/bash
echo "Running lang: Polish"
cd "game/Divinity - Original Sin.app/Contents/Data/Localization"
sed -i.bu 's/id="Value" value=".*"/id="Value" value="Polish" type="20"/g' language.lsx
rm -rf *.bu
cd "../../../../.."
open "game/Divinity - Original Sin.app"
Alternately, you can also delete the lines where it sets the language to Polish, and just set that once in the /Contents/Data/Loclaization/language.lsx file. The script file would then just be:
#!/bin/bash
#run game
open "game/Divinity - Original Sin.app"
How to change the language (gog, mac)?