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

Unified Diff: chrome/common/translate/language_detection_util.cc

Issue 25212002: Bug fix: Translate: CLD2 imcompatibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/translate/language_detection_util.cc
diff --git a/chrome/common/translate/language_detection_util.cc b/chrome/common/translate/language_detection_util.cc
index ccb6154e8a38dc206f91ac77dccfe09d4edb5aab..61e3231146c0a6c36b7e8654ae7089071b4d722e 100644
--- a/chrome/common/translate/language_detection_util.cc
+++ b/chrome/common/translate/language_detection_util.cc
@@ -154,6 +154,8 @@ std::string DetermineTextLanguage(const base::string16& text,
case 2:
if (cld_language == CLD2::CHINESE) {
language = "zh-CN";
+ } else if (cld_language == CLD2::CHINESE_T) {
+ language = "zh-TW";
Takashi Toyoshima 2013/10/01 06:20:17 Do you have any reason to handle them as special c
hajimehoshi 2013/10/02 01:13:25 We decided not to update CLD2 for this. I'll add
} else {
language =
CLD2::LanguageCode(static_cast<CLD2::Language>(cld_language));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698