Allow country-specific languages in UI list at OOBE.
commit1f5210db31abd9cf091e6255ff83c565d0cf70a6
authoralemate@chromium.org <alemate@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 9 Apr 2014 21:01:40 +0000 (9 21:01 +0000)
committeralemate@chromium.org <alemate@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 9 Apr 2014 21:01:40 +0000 (9 21:01 +0000)
treeb7469ac540ea48fb4bc9ad3a4c2a898a87213769
parentcaade8fbf7499fe9df247247f2792d7baeee6d6c
Allow country-specific languages in UI list at OOBE.

This CL allows displaying to user and selection of country-specific language
codes for which we do not have actual translation. A base language locale
will be used instead.

BUG=357481
TEST=browsertest

To test manually:

1) Set VPD value of initial_locale to country-specific language codes, for which only the translation to base language exist. For example:
"fr-CH,it-CH,de-CH"

2) Start OOBE and check they are displayed and selectable like any other languages.

Review URL: https://codereview.chromium.org/224093013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262808 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/chromeos/base/locale_util.cc
chrome/browser/chromeos/customization_document.cc
chrome/browser/chromeos/login/oobe_localization_browsertest.cc
chrome/browser/ui/webui/chromeos/login/network_screen_handler.cc
chrome/browser/ui/webui/chromeos/login/network_screen_handler.h
chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc
ui/base/l10n/l10n_util.cc
ui/base/l10n/l10n_util.h