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

Unified Diff: components/translate/core/browser/translate_manager.cc

Issue 2655223002: Revert of Don't offer to translate between Simplified and Traditional Chinese (Closed)
Patch Set: Created 3 years, 11 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 | components/translate/core/browser/translate_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/core/browser/translate_manager.cc
diff --git a/components/translate/core/browser/translate_manager.cc b/components/translate/core/browser/translate_manager.cc
index 1c9183a27fb6df6deb62b1b12702caf4fe32e061..33d3c514a5d011646e21b4c5aedfbff7679a21f6 100644
--- a/components/translate/core/browser/translate_manager.cc
+++ b/components/translate/core/browser/translate_manager.cc
@@ -4,7 +4,6 @@
#include "components/translate/core/browser/translate_manager.h"
-#include <iostream>
#include <map>
#include "base/bind.h"
@@ -225,14 +224,12 @@
InitTranslateEvent(language_code, target_lang, *translate_prefs);
// Don't translate similar languages (ex: en-US to en).
- // Also do not offer to translate between Simplified and Traditional Chinese.
- if (language_code == target_lang ||
- (language_code == "zh-CN" && target_lang == "zh-TW") ||
- (language_code == "zh-TW" && target_lang == "zh-CN")) {
+ if (language_code == target_lang) {
TranslateBrowserMetrics::ReportInitiationStatus(
TranslateBrowserMetrics::INITIATION_STATUS_SIMILAR_LANGUAGES);
return;
}
+
// Nothing to do if either the language Chrome is in or the language of the
// page is not supported by the translation server.
if (target_lang.empty() ||
« no previous file with comments | « no previous file | components/translate/core/browser/translate_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698