summaryrefslogtreecommitdiffstats
path: root/third_party/cld/encodings
Commit message (Collapse)AuthorAgeFilesLines
* Fix language detection with short text pages.jcivelli@chromium.org2010-08-022-4/+6
| | | | | | | | | | | | 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
* Merging in a fix for Dick sites that reduces bad detectionjcivelli@google.com2010-04-151-3/+12
| | | | | | | | | | | | 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
* Using now the 128 tables in the CLD to improve language detection.jcivelli@google.com2010-04-092-2/+2
| | | | | | Review URL: http://codereview.chromium.org/1559023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44095 0039d316-1c4b-4281-b951-d872f2087c98
* Per Dick Sites advice, adding the CLD repeat flag to help with thejcampan@chromium.org2010-02-171-1/+1
| | | | | | | | | | | | | 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
* Clean up third_party/cld.jshin@chromium.org2010-02-0459-0/+206000
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