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

Currency not displayed correctly on Windows. #188

Open
yoshpe opened this issue May 4, 2014 · 2 comments
Open

Currency not displayed correctly on Windows. #188

yoshpe opened this issue May 4, 2014 · 2 comments

Comments

@yoshpe
Copy link

yoshpe commented May 4, 2014

I use Windows and the Format is set to "English (United States)", but the currency symbol is set ₪. but in shop_tags.py the value is not encoded currently.
Suggested fix:

value = str(value, encoding=locale.getdefaultlocale()[1])
@molokov
Copy link
Contributor

molokov commented May 4, 2014

What do you have SHOP_CURRENCY_LOCALE set to?

@yoshpe
Copy link
Author

yoshpe commented May 4, 2014

It is not set, so Cartridge uses system locale.
The symbol is correct but in order to display it correctly the value must
be encoded with an encoding that has the correct symbol..
On May 5, 2014 12:42 AM, "molokov" notifications@github.com wrote:

What do you have SHOP_CURRENCY_LOCALE set to?


Reply to this email directly or view it on GitHubhttps://github.com//issues/188#issuecomment-42146173
.

@stephenmcd stephenmcd changed the title Currency not displayed correctly. Currency not displayed correctly on Windows. Jul 20, 2014
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