summaryrefslogtreecommitdiffstats
path: root/third_party/eyesfree
diff options
context:
space:
mode:
authorrouslan@chromium.org <rouslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-25 04:48:00 +0000
committerrouslan@chromium.org <rouslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-25 04:48:00 +0000
commite140a852063264f181f049cd154f848ddbf28aa6 (patch)
tree9deee4bca62198f55dce3b694b9fa6ddfeee3406 /third_party/eyesfree
parent9af1b2e05f32656efb130eff341ecb011a81e08c (diff)
downloadchromium_src-e140a852063264f181f049cd154f848ddbf28aa6.zip
chromium_src-e140a852063264f181f049cd154f848ddbf28aa6.tar.gz
chromium_src-e140a852063264f181f049cd154f848ddbf28aa6.tar.bz2
Determine language code and type of format for address.
BuildComponents() in address_ui.h should take the UI language and determine the following two questions. (1) Whether to show UI components based on local or latinized address format. If the UI language does not match the default language for the country, and latinized address format is available, then use the latinized format. All countries with a latinized address format also have the default language specified. (2) Which language code should be used to format the address after the user provides it. If the UI language is one of the languages supported by the country, then use the UI language. If the country lists supported languages, none of which match the UI language, then pick the first supported language. If the country does not have supported languages (e.g. Antarctica), then use the UI language for formatting. If using the latinized format and the UI language is not one of the supported languages, then the formatting language is [country's default language] + "-latn". BUG=354954 Review URL: https://codereview.chromium.org/208243005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259150 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/eyesfree')
0 files changed, 0 insertions, 0 deletions