Chromium Code Reviews| 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)); |