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

Unified Diff: chrome/browser/translate/translate_infobar_delegate.h

Issue 15295004: Translate: enable against unknown languages with server side detection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 7 years, 7 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
Index: chrome/browser/translate/translate_infobar_delegate.h
diff --git a/chrome/browser/translate/translate_infobar_delegate.h b/chrome/browser/translate/translate_infobar_delegate.h
index 44fae4b72b86a047c2917e25ad1c9b91b0daf021..3f44486b0b5b58db48960b3336d6b86131859c60 100644
--- a/chrome/browser/translate/translate_infobar_delegate.h
+++ b/chrome/browser/translate/translate_infobar_delegate.h
@@ -175,6 +175,15 @@ class TranslateInfoBarDelegate : public InfoBarDelegate {
static void GetAfterTranslateStrings(std::vector<string16>* strings,
bool* swap_languages);
+ // Adds the strings that should be displayed in the after translate infobar to
+ // |strings|. When a source language is not determined by Chrome, Languages
+ // are detected by a server automatically. And infobar doesn't show source
+ // languages. The text in the infobar is:
+ // "The page has been translated to <lang1>."
+ // Because <lang1> is displayed in a menu button, the text is split in 2
+ // chunks.
+ static void GetAfterTranslateWithAutoStrings(std::vector<string16>* strings);
+
protected:
// For testing.
TranslateInfoBarDelegate(Type infobar_type,

Powered by Google App Engine
This is Rietveld 408576698