Sirbvb
September 17, 2017, 1:15am
1
All of the Caribbean Islands are missing under Country, Select region. in particular, Trinidad and Tobago a major Oil and Gas producer…Help!!! please add them…
1 Like
I added a document describing how to add missing countries:
= How to add a new country for national bank transfer payment method
:toc:
== Introduction
We maintain a data structure for countries, regions (continents) and languages. To add a missing country we invite the requester to make a Github pull request if they are familiar with Java and Github. Otherwise please provide the country code (2 letter ISO 3166 code), continent and language code (2 letter ISO 639-1 code) as described below and post that to the Github issue. That will reduce effort for other contributors when making a PR.
== Instructions
=== Step 1: Add an entry to the `regionByCountryCodeMap` in the class `CountryUtil`
In class `io.bisq.common.locale.CountryUtil` there is a static initializer where the country and the region (continent) is defined. Please add a comment for the full name as well. Add newly added countries at the end of the list.
First entry (key) is the ISO 3166 code of the country. Second entry (value) is region code as defined in regionCodeToNameMap [*]
E.g.: `regionByCountryCodeMap.put("PR", "NA"); // Puerto Rico / North America`
[*] regionCodeToNameMap: +
regionCodeToNameMap.put("NA", "North America"); +
This file has been truncated. show original
1 Like
Sirbvb
September 23, 2017, 2:18am
3
Thanks Manfred spot on M8!..