Skip to content

Commit

Permalink
Bug 1308021 - Replace "iw" with "he" in cld2 detectLanguage results. …
Browse files Browse the repository at this point in the history
…r=florian

I have a pull request for these changes upstream:
CLD2Owners/cld2#50

MozReview-Commit-ID: LUqrA4Genv0

UltraBlame original commit: df38d06ab30c18581e164677f4447a2c28b93439
  • Loading branch information
marco-c committed Sep 30, 2019
1 parent 620be3f commit 69af0e3
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 116 deletions.
182 changes: 77 additions & 105 deletions browser/components/translation/cld2/cld-worker.js

Large diffs are not rendered by default.

Binary file modified browser/components/translation/cld2/cld-worker.js.mem
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -637,4 +637,3 @@ extern const short kAvgDeltaOctaScore[kAvgDeltaOctaScoreSize] = {
};

}

Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ static const LangTagLookup kCLDLangTagsHintTable1[kCLDTable1Size] = {
{"haitian_creole", "ht", HAITIAN_CREOLE + W10, 0},
{"hausa", "ha", HAUSA + W10, 0},
{"hawaiian", "haw", HAWAIIAN + W10, 0},
{"hebrew", "iw", HEBREW + W10, 0},
{"hebrew", "he", HEBREW + W10, 0},
{"hindi", "hi", HINDI + W10, MARATHI - W4},
{"hn-in", "hi", HINDI + W10, MARATHI - W4},
{"hungarian", "hu", HUNGARIAN + W10, 0},
Expand Down Expand Up @@ -447,9 +447,9 @@ static const LangTagLookup kCLDLangTagsHintTable2[kCLDTable2Size] = {
{"ha", "ha", HAUSA + W10, 0},
{"hat", "ht", HAITIAN_CREOLE + W10, 0},
{"haw", "haw", HAWAIIAN + W10, 0},
{"hb", "iw", HEBREW + W10, 0},
{"he", "iw", HEBREW + W10, 0},
{"heb", "iw", HEBREW + W10, 0},
{"hb", "he", HEBREW + W10, 0},
{"he", "he", HEBREW + W10, 0},
{"heb", "he", HEBREW + W10, 0},
{"hi", "hi", HINDI + W10, MARATHI - W4},
{"hk", "zhT", CHINESE_T + W10, 0},
{"hr", "hr", CROATIAN + W10, 0},
Expand All @@ -473,7 +473,7 @@ static const LangTagLookup kCLDLangTagsHintTable2[kCLDTable2Size] = {
{"it", "it", ITALIAN + W10, 0},
{"ita", "it", ITALIAN + W10, 0},
{"iu", "iu,ik", INUKTITUT + W10, INUPIAK + W10},
{"iw", "iw", HEBREW + W10, 0},
{"iw", "he", HEBREW + W10, 0},

{"ja", "ja", JAPANESE + W10, 0},
{"jp", "ja", JAPANESE + W10, 0},
Expand Down Expand Up @@ -1647,5 +1647,3 @@ string GetLangTagsFromHtml(const char* utf8_body, int32 utf8_body_len,
}




Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ extern const char* const kLanguageToCode[kLanguageToCodeSize] = {
"fi",
"fr",
"de",
"iw",
"he",
"it",
"ja",
"ko",
Expand Down
4 changes: 2 additions & 2 deletions browser/components/translation/test/unit/test_cld2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 69af0e3

Please sign in to comment.