| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
The patch adapted from the upstream change.
BUG=50113
TEST=1. Apply the CL and build Chrome on ARM and visit the page listed in the bug. Chrome should not freeze.
2. Run unit_tests --gtest_filter=CompactLang*.*
Review URL: http://codereview.chromium.org/3325020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108586 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Nine new languages: Albanian, Azerbaijani, Basque, Bengali, Galician,
Haitian_Creole, Maltese, Serbian-Latin, and Urdu.
A few tweaks to existing languages to improve detection quality, e.g.
Serbian-Latin/Croatian-Latin language pair distinction improved.
kAvgDeltaOctaScore table declared in cld_generated_score_deltaoctachrome_0406.cc
is not used yet and checked in to keep it along with other detection tables of
the same revision.
BUG=39503
TEST=third_party/cld builds on all platforms and pass the following tests:
- unit_tests: Extension*.DetectTabLanguage and CompactLangDetTest.*
- browser_tests: ExtensionBrowserTest.Toolstrip
Review URL: http://codereview.chromium.org/7184029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90828 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changed CLD wrapper function to return the number of bytes used for language detection, and using that in the render view to ignore detection for short texts.
BUG=45156
TEST=Visit www.voila.fr, an infobar should show reporting the page is in French.
Visit http://jdvhotels.com/calendar.html?datetime=1274857200000&id=0, no translate infobar should show.
Review URL: http://codereview.chromium.org/3038018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54568 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
with random text.
BUG=39217
TEST=Open pages in various languages, make sure the infobar
appears and reports the right language for the page.
Review URL: http://codereview.chromium.org/1559035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44711 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
| |
Review URL: http://codereview.chromium.org/1559023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44095 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
detection on some pages.
This only marginally slows down the language detection.
BUG=35156
TEST=Open http://app.jackrabbitclass.com/eventcalendar.asp?orgid=250131 in Chrome English.
No translation infobar should be shown.
Review URL: http://codereview.chromium.org/626008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39289 0039d316-1c4b-4281-b951-d872f2087c98
|
|
1. Remove files we don't use that come from toolbar
2. Simplify the directory structure by removing the redundant
intermediary directories bar/toolbar/cld/i18n
This will bring CLD a step closer to where it can be open-sourced separately (or along with CED for encoding detection.). It's not there yet.
In addition to the clean-up, change |LanguageCode*| return
'nb', 'he', 'fil' instead of 'no', 'iw', and 'tl'.
Also, use LanguageCodeWithDialects instead of LanguageCode to get 'zh-CN'
instead of 'zh'. This is to simplify the 3-way mapping between
Chrome's UI locale code, CLD's language code and what's accepted by
Google Translate. It's also another preparation for open-sourcing because
we'd better use the standard code rather than the obsolete code like 'iw'
when open-sourcing.
BUG=32759, 33613
TEST=third_party/cld builds on all platforms and pass the following tests:
- unit_tests: Extension*.DetectTabLanguage and CompactLangDetTest.*
- browser_tests: ExtensionBrowserTest.Toolstrip
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38146 0039d316-1c4b-4281-b951-d872f2087c98
|