Commit bbf38447 authored by Jon Napper's avatar Jon Napper Committed by Commit Bot

Added missing well-known conflicting language codes

Added missing well-known conflicting language codes to whitelist of
codes that are often incorrect (see
go/reducing-language-detection-conflicts)

Bug: 765006
Change-Id: I159be446d6521c356461187f94ed372a7494cafc
Reviewed-on: https://chromium-review.googlesource.com/720578Reviewed-by: default avatarJia Meng <jiameng@chromium.org>
Commit-Queue: Jon Napper <napper@chromium.org>
Cr-Commit-Position: refs/heads/master@{#508983}
parent 53838b6f
......@@ -62,8 +62,9 @@ int GetSimilarLanguageGroupCode(const std::string& language) {
// TODO(toyoshim): Remove these static tables and caller functions to
// translate/common, and implement them as std::set<>.
const char* kWellKnownCodesOnWrongConfiguration[] = {
"es", "pt", "ja", "ru", "de", "zh-CN", "zh-TW", "ar", "id", "fr", "it", "th"
};
"es", "pt", "ja", "ru", "de", "zh-CN", "zh-TW", "ar",
"id", "fr", "it", "th", "hi", "ms", "vi", "fa",
"ro", "da", "el", "nl", "hu", "tr", "sv", "pl"};
// Applies a series of language code modification in proper order.
void ApplyLanguageCodeCorrection(std::string* code) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment