DescriptionRevert 202427 "Translate: adopt html lang attribute if valid val..."
> Translate: adopt html lang attribute if valid value is provided
>
> Language decision is made by heuristics using Content-Language and CLD
> determined language. This change adds html lang attribute, e.g.,
> <html lang="ja">, as a third hint for language decision.
> Content-Language is often invalid due to invalid server configuration.
> On the other hand, lang attribute is provided by pages, or authoring
> tools or authors themselves. As a result, they are more reliable than
> Content-Language. With this change, language decision uses html lang
> attribute instead of Content-Language if valid value is provided.
> Other dicision process is not changed at all.
>
> BUG=222073
> TEST=unit_tests, browser_tests
>
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201856
>
> Review URL: https://chromiumcodereview.appspot.com/15728002
TBR=toyoshim@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202443
Patch Set 1 #
Messages
Total messages: 2 (0 generated)
|