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

Change Venezuelan currency from VEF to VES #4572

Closed
wants to merge 1 commit into from

Conversation

pingiun
Copy link
Contributor

@pingiun pingiun commented Sep 29, 2020

Fixes #1920

This adds a properties file to supply to java.util.Currency so that it knows the Venezuelan currency is VES. Adding additional data to this class is quite cumbersome. You need to supply a properties file, but it cannot be a class resource, it has to live in an actual file. I placed this logic in BisqExecutable.java but I don't think it's the best location.

The currency currently has no display name, so the Bisq app defaults to "VES (VES)". I don't know how locale information within the Java jdk can be translated, so please help me with that. Alternatively I could do some checks in various places to check if the display name for VES is requested and we could use our own translation strings.
Update: I added translations from the bisq string resources

This code should be removed if we upgrade to Java 11 or newer, because the currency data is updated in those versions.

@pingiun
Copy link
Contributor Author

pingiun commented Sep 29, 2020

image

image

@wiz
Copy link
Member

wiz commented Sep 30, 2020

Aren't we upgrading Java soon? If so this patch likely isn't needed.

@pingiun
Copy link
Contributor Author

pingiun commented Sep 30, 2020

I think @MwithM wanted to have this quite soon. If the Java version is upgraded in the next release, this should not be needed. Otherwise I think this is useful as a stop-gap

@ripcurlx
Copy link
Contributor

ripcurlx commented Oct 6, 2020

I think @MwithM wanted to have this quite soon. If the Java version is upgraded in the next release, this should not be needed. Otherwise I think this is useful as a stop-gap

Hi @pingiun! I think it is not worth adding this patch as it looks like we'll update to JDK 11 already in 1.4.1 or 1.4.2.

@MwithM
Copy link
Contributor

MwithM commented Oct 7, 2020

@pingiun Thank you anyway for this doing this pull request so quickly.

@ripcurlx
Copy link
Contributor

ripcurlx commented Oct 8, 2020

Closing as it will be superseded by #4242.

@ripcurlx ripcurlx closed this Oct 8, 2020
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.

Currency code for Venezuelan bolivar has changed
4 participants