Skip to content
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

Set custom locale #25

Closed
mzur opened this issue Sep 30, 2012 · 3 comments
Closed

Set custom locale #25

mzur opened this issue Sep 30, 2012 · 3 comments

Comments

@mzur
Copy link
Contributor

mzur commented Sep 30, 2012

It should be possible to set a custom locale maybe via:
--locale=en_EN.UTF-8

I hard coded my locale this way:
locale.setlocale(locale.LC_ALL, 'de_DE.UTF-8')

@Unkuiri
Copy link

Unkuiri commented Sep 30, 2012

Hi, thanks for your tip.
Where on the file did you put the hard-coded part?

@mzur
Copy link
Contributor Author

mzur commented Sep 30, 2012

I put it directly below the import- and from-block in Line 61. But I suppose you'll know better where to put it since I have no experience in Python at all and have not yet figured out how a --locale option would be implemented.

@mzur
Copy link
Contributor Author

mzur commented Oct 1, 2012

I implemented the locale support and will send a pull request (since I finally have worked out how github works :-D).

What I can't test is the behaviour of locales with non-UTF-8 characters. There are several issues about this here I believe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants