DescriptionPort back CLD to Linux and Mac by replacing Windows API calls with ICU's equivalent APIs for normalization and lowercasing.
I also fixed bug 23553 (Traditional Chinese is not detected) by calling LanguageCode instead of LanguageCode_ISO_639_1 (the latter covers only ISO-639-1, but there are languages detected by CLD that are not covered by ISO 639-1 codes).
The html file for CLD testing (french_sentence.html) is explicitly labelled with
charset=ISO-8859-1.
BUG=25206, 23553
TEST=1. CLD is built on Linux/Mac and the following test pass:
- unit_tests: Extension*.DetectTabLanguage and CompactLangDetTest.*
- browser_tests: ExtensionBrowserTest.Toolstrip
2. Install the 'cld extension' in chrome/common/extensions/docs/examples/api/i18n/cld and go to http://news.google.com.tw. 'zh-TW' should show up in the upper right hand corner instead of '???'.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=36541
Patch Set 1 #Patch Set 2 : '' #Patch Set 3 : '' #Patch Set 4 : '' #Patch Set 5 : '' #Patch Set 6 : '' #Patch Set 7 : '' #Patch Set 8 : '' #Patch Set 9 : '' #Patch Set 10 : '' #Patch Set 11 : '' #Patch Set 12 : '' #Patch Set 13 : '' #Patch Set 14 : '' #Patch Set 15 : '' #
Total comments: 3
Patch Set 16 : '' #Patch Set 17 : '' #Patch Set 18 : '' #Patch Set 19 : '' #Patch Set 20 : '' #Patch Set 21 : '' #Patch Set 22 : '' #Patch Set 23 : '' #Patch Set 24 : '' #Patch Set 25 : '' #Messages
Total messages: 5 (0 generated)
|