New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use different language to the operation system #140

Closed
bueltge opened this Issue Sep 9, 2012 · 6 comments

Comments

Projects
None yet
2 participants
@bueltge

bueltge commented Sep 9, 2012

It is possible to use git-coloa in a different language to the operation system?

I will use git cola always in english, it is easier to understand to buttons/commands, why its the commands of git and also fine to learn this commands. Maybe a item in the settings or a entry for a config-file.
Thanks for the toll, great work.

@davvid

This comment has been minimized.

Show comment
Hide comment
@davvid

davvid Sep 9, 2012

Member

Yes, git-cola uses the standard $LANG environment variable to determine what language to use.

Its translations are not complete. Launching git-cola like this should force it to use english:

$ env LANG=en_US.UTF-8 /path/to/git-cola/bin/git-cola

e.g. if you already have it installed in your $PATH:

$ env LANG=en_US.UTF-8 git cola

Let me know if that's helpful for you. If you find that you're always overriding the LANG environment variable then I can probably add a configuration knob, e.g. cola.lang, so that you can set it once and forget about it. If that would be helpful for you then we can add it, just let me know.

Member

davvid commented Sep 9, 2012

Yes, git-cola uses the standard $LANG environment variable to determine what language to use.

Its translations are not complete. Launching git-cola like this should force it to use english:

$ env LANG=en_US.UTF-8 /path/to/git-cola/bin/git-cola

e.g. if you already have it installed in your $PATH:

$ env LANG=en_US.UTF-8 git cola

Let me know if that's helpful for you. If you find that you're always overriding the LANG environment variable then I can probably add a configuration knob, e.g. cola.lang, so that you can set it once and forget about it. If that would be helpful for you then we can add it, just let me know.

@bueltge

This comment has been minimized.

Show comment
Hide comment
@bueltge

bueltge Sep 9, 2012

Thanks for fast reply. But it is not possible for me, not enough right as answer for:
sudo env LANG=en_US.UTF-8 /usr/share/git-cola/

Im confused, think sudo was root on Ubuntu.

bueltge commented Sep 9, 2012

Thanks for fast reply. But it is not possible for me, not enough right as answer for:
sudo env LANG=en_US.UTF-8 /usr/share/git-cola/

Im confused, think sudo was root on Ubuntu.

@davvid

This comment has been minimized.

Show comment
Hide comment
@davvid

davvid Sep 9, 2012

Member

I see. It seems like you already have git-cola in your path so either of these should work:

env LANG=en_US.UTF-8 git cola
env LANG=en_US.UTF-8 /usr/bin/git-cola

You shouldn't need sudo. Does that work better?

Member

davvid commented Sep 9, 2012

I see. It seems like you already have git-cola in your path so either of these should work:

env LANG=en_US.UTF-8 git cola
env LANG=en_US.UTF-8 /usr/bin/git-cola

You shouldn't need sudo. Does that work better?

@bueltge

This comment has been minimized.

Show comment
Hide comment
@bueltge

bueltge Sep 11, 2012

Thanks. But it does not help, the git code starts always with german language, how my operation system.

bueltge commented Sep 11, 2012

Thanks. But it does not help, the git code starts always with german language, how my operation system.

@davvid

This comment has been minimized.

Show comment
Hide comment
@davvid

davvid Sep 11, 2012

Member

Thanks Frank. The GNU documentation suggests that the LANGUAGE environment variable is intended to be used for this purpose.

http://www.gnu.org/software/gettext/manual/gettext.html#Setting-the-POSIX-Locale

http://www.gnu.org/software/gettext/manual/gettext.html#The-LANGUAGE-variable

So if you have this in your ~/.bashrc then it should work as intended:

LANGUAGE=en
export LANGUAGE

That will set this globally, though, which means all programs will start using English. To affect only git-cola then you would invoke git-cola like this:

env LANGUAGE=en /usr/bin/git-cola
Member

davvid commented Sep 11, 2012

Thanks Frank. The GNU documentation suggests that the LANGUAGE environment variable is intended to be used for this purpose.

http://www.gnu.org/software/gettext/manual/gettext.html#Setting-the-POSIX-Locale

http://www.gnu.org/software/gettext/manual/gettext.html#The-LANGUAGE-variable

So if you have this in your ~/.bashrc then it should work as intended:

LANGUAGE=en
export LANGUAGE

That will set this globally, though, which means all programs will start using English. To affect only git-cola then you would invoke git-cola like this:

env LANGUAGE=en /usr/bin/git-cola
@bueltge

This comment has been minimized.

Show comment
Hide comment
@bueltge

bueltge Sep 13, 2012

env LANGUAGE=en /usr/bin/git-cola
works, but i don't start the cola with command line, normaly. Maybe you find the time and like the idea for an option in git-cola to set the language. Thanks!

bueltge commented Sep 13, 2012

env LANGUAGE=en /usr/bin/git-cola
works, but i don't start the cola with command line, normaly. Maybe you find the time and like the idea for an option in git-cola to set the language. Thanks!

@davvid davvid closed this in f685c52 Sep 20, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment