Duplicate of #1757.
And specifically see the [comment](https://github.com/geany/geany/issues/1757#issuecomment-362868750) explaining why in-program settings won't work.
Method two might work if it sets the LANG environment variable before running the program.