Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: third_party/libaddressinput/chromium/cpp/src/region_data_constants.cc

Issue 135853023: Update libaddressinput's US address format (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/libaddressinput/chromium/cpp/test/address_data_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libaddressinput/chromium/cpp/src/region_data_constants.cc
diff --git a/third_party/libaddressinput/chromium/cpp/src/region_data_constants.cc b/third_party/libaddressinput/chromium/cpp/src/region_data_constants.cc
index c2d2e18058e1faeef593b56ce639ca3b452debd3..6ebb7ba4e17266ac8b0732ad9763df06ceb339e8 100644
--- a/third_party/libaddressinput/chromium/cpp/src/region_data_constants.cc
+++ b/third_party/libaddressinput/chromium/cpp/src/region_data_constants.cc
@@ -1085,9 +1085,11 @@ std::map<std::string, std::string> InitRegionData() {
region_data.insert(std::make_pair("UG", "{"
"\"name\":\"UGANDA\""
"}"));
+ // NOTE: The fmt value for UM and US differs from the i18napis fmt by the
+ // insertion of a comma separating city and state.
region_data.insert(std::make_pair("UM", "{"
"\"name\":\"UNITED STATES MINOR OUTLYING ISLANDS\","
- "\"fmt\":\"%N%n%O%n%A%n%C %S %Z\","
+ "\"fmt\":\"%N%n%O%n%A%n%C, %S %Z\","
"\"zip_name_type\":\"zip\","
"\"state_name_type\":\"state\""
"}"));
@@ -1095,7 +1097,7 @@ std::map<std::string, std::string> InitRegionData() {
"\"name\":\"UNITED STATES\","
"\"lang\":\"en\","
"\"languages\":\"en\","
- "\"fmt\":\"%N%n%O%n%A%n%C %S %Z\","
+ "\"fmt\":\"%N%n%O%n%A%n%C, %S %Z\","
"\"zip_name_type\":\"zip\","
"\"state_name_type\":\"state\""
"}"));
« no previous file with comments | « no previous file | third_party/libaddressinput/chromium/cpp/test/address_data_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698