How to make debug.sh to pick up LANG variable?

Asked by mrk on 2010-01-20

Good day there!

I want to test localization without actually installing gtg. But if i just run ./scripts/debug.sh then gtg will start with C locale, and i use, for example, ru_RU.UTF-8 and want see the UI in Russian. Is able to do this?
Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Getting Things GNOME! Edit question
Assignee:
No assignee Edit question
Solved by:
mrk
Solved:
2010-01-21
Last query:
2010-01-21
Last reply:
2010-01-21

Hi,

using the following command line should actually do the trick:

> LANG=ru_RU.UTF8 scripts/debug.sh

But make sure first that the locales are correctly generated in your copy of GTG. You can for instance execute the scripts/generate_mofile.sh script for this, or alternatively download the files from our launchpad page.

As a side note, if you want to test GTG without actually installing it, you can also simply use the "gtg" script in the root directory of the archive/repository copy you have. scripts/debug.sh is just a wrapper defining some environment variables so that it is possible to launch GTG for debugging purpose without interfering with your personal data and taking risk to lose it.

Hope it helps,

Bertrand

mrk (cvs-src) said : #2

Thank you!
As you said i just should generate .mo-file first. Sorry for the noise.