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

Use default locale to get sign if none set for current locale #97

Merged
merged 5 commits into from
Nov 10, 2017

Conversation

adamb70
Copy link
Contributor

@adamb70 adamb70 commented Sep 14, 2017

If current locale has no set sign definition for a currency, fall back to using the DEFAULT locale to try to get the sign definition. Should fix #96.

It looks like #38 was opened for a similar issue but was eventually merged into a separate branch. Is this something that would be kept in a different branch or do you want this functionality in the master?

If current locale has no sign definition for a currency, fall back to
using the DEFAULT locale to try to get the sign definition.
Tests were failing due to `pl_PL` now reverting to `DEFAULT` due to not
having a sign definition set for USD.
@spookylukey
Copy link
Collaborator

This looks good to me. However, it is potentially backwards incompatible in terms of changing existing behaviour that people may have been relying on. I'd therefore like there to be a note in CHANGES.rst. Thanks!

@adamb70
Copy link
Contributor Author

adamb70 commented Nov 8, 2017

Added a note under the header for version 0.8, you might want to change that though if it isn't the intended release version.

@spookylukey spookylukey merged commit 1006e6b into py-moneyed:master Nov 10, 2017
@spookylukey
Copy link
Collaborator

Thanks!

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

Successfully merging this pull request may close these issues.

Default locale is not used
2 participants