From 37dc5df58cf9c916b810b00004f628d7b2f08170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Sat, 14 Jun 2014 16:11:58 -0700 Subject: [PATCH 1/2] Added Vietnamese address format Accounts for both rural and urban address formats. --- data/address-formats.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/address-formats.json b/data/address-formats.json index f5a7c08db4..ba7fec1927 100644 --- a/data/address-formats.json +++ b/data/address-formats.json @@ -13,5 +13,9 @@ { "countryCodes": ["br"], "format": [["street"], ["housenumber", "suburb"], ["city", "postcode"]] + }, + { + "countryCodes": ["vn"], + "format": [["housenumber", "street"], ["subdistrict", "district"], ["suburb", "city"], ["province", "postcode"]] } ] From 25d11fe48971553476fd51c32227105b84ce033b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Sat, 14 Jun 2014 23:26:41 -0700 Subject: [PATCH 2/2] Corrected Vietnamese address preset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nothing in Vietnam uses addr:suburb, and it seems to be intended to be subordinate to addr:district and addr:subdistrict, which means it definitely doesn’t map to thị xã. I also found some examples using addr:district for thị xã. So addr:district should be used for both quận and thị xã in a municipality. The resulting placeholder text will be rather long, and Vietnamese mail tend to have each component on a separate line, so I also split subdistrict, district, and city onto separate lines. --- data/address-formats.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/address-formats.json b/data/address-formats.json index ba7fec1927..89f93553c3 100644 --- a/data/address-formats.json +++ b/data/address-formats.json @@ -16,6 +16,6 @@ }, { "countryCodes": ["vn"], - "format": [["housenumber", "street"], ["subdistrict", "district"], ["suburb", "city"], ["province", "postcode"]] + "format": [["housenumber", "street"], ["subdistrict"], ["district"], ["city"], ["province", "postcode"]] } ]