diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-24 01:44:40 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-24 01:44:40 +0000 |
commit | 70082aabee6372122bf5a0c5ac68bed55315abc0 (patch) | |
tree | e14b9e73ce976377c84c46811197fdff751ad7e0 /chrome/test/data | |
parent | 5ea0b5a6215d111cbd954cfa945f3d896396793c (diff) | |
download | chromium_src-70082aabee6372122bf5a0c5ac68bed55315abc0.zip chromium_src-70082aabee6372122bf5a0c5ac68bed55315abc0.tar.gz chromium_src-70082aabee6372122bf5a0c5ac68bed55315abc0.tar.bz2 |
Don't report the language if the CLD reports it as unreliable or if the text is too short.
That might trigger a translate infobar with the wrong language, it is better to show none.
BUG=36593
TEST=Open the pages reported in the bug. No translate infobar should be shown.
Review URL: http://codereview.chromium.org/652144
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39833 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data')
-rw-r--r-- | chrome/test/data/english_page.html | 1 | ||||
-rw-r--r-- | chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/french_sentence.html | 19 |
2 files changed, 19 insertions, 1 deletions
diff --git a/chrome/test/data/english_page.html b/chrome/test/data/english_page.html index 539920d..30b0d42 100644 --- a/chrome/test/data/english_page.html +++ b/chrome/test/data/english_page.html @@ -2,5 +2,6 @@ <head><title>This page is in English</title></head> <body> No joke! This is a page written in English. Awesome don't you think? +It has to be more than 100 bytes long for the CLD to detect the language correctly. </body> </html> diff --git a/chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/french_sentence.html b/chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/french_sentence.html index a7607f2..feffc4b 100644 --- a/chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/french_sentence.html +++ b/chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/french_sentence.html @@ -7,7 +7,24 @@ LICENSE file. <meta charset="ISO-8859-1"> <body> <p> -Ceci est une phrase complète est en français, rédigé en anglais puis traduits +Maître Corbeau, sur un arbre perché, +Tenait en son bec un fromage. +Maître Renard, par l'odeur alléché, +Lui tint à peu près ce langage : +"Hé ! bonjour, Monsieur du Corbeau. +Que vous êtes joli ! que vous me semblez beau ! +Sans mentir, si votre ramage +Se rapporte à votre plumage, +Vous êtes le Phénix des hôtes de ces bois. " +A ces mots le Corbeau ne se sent pas de joie ; +Et pour montrer sa belle voix, +Il ouvre un large bec, laisse tomber sa proie. +Le Renard s'en saisit, et dit : "Mon bon Monsieur, +Apprenez que tout flatteur +Vit aux dépens de celui qui l'écoute : +Cette leçon vaut bien un fromage, sans doute. " +Le Corbeau, honteux et confus, +Jura, mais un peu tard, qu'on ne l'y prendrait plus. </p> </body> </html> |