Intended audience: users, XHTML/HTML coders (using editors or scripting), script developers (PHP, JSP, etc.), CSS coders, Web project managers, and anyone who wants to know how the translate attribute works in current browsers.
These tests check whether online machine translation systems recognize the HTML5 translate
attribute when processing text for translation.
The tables show results for tests run on the date shown. Above the tables are summaries of the results at that date. The table data may be more up-to-date than the summary. If the tables contain some incorrectly scored tests, or tests that relate to non-released versions of browsers, these are not included in the summary.
To see the test, click on the link in the left-most column. To see detailed results for a single test, click on the link in the right-most column. The results in this section aren't about browsers. Instead they are for online translation services. All online translation services tested recognised the Of the translation services tested, only Microsoft failed to recognize a translate flag set to Links: Section 3.2.3.4 • Related tests The results in this section aren't about browsers. Instead they are for online translation services. The HTML5 specification lists attribute values that should be translated if the The results are mixed. Google always translates Microsoft doesn't translate Yandex services pass all the tests. Links: Section 3.2.3.4 • Related tests
Online translation services
Snapshot summary, 2014-11-26
translate
attribute when it was set to no
, and left the appropriate text untranslated.yes
inside another element with the translate flag set to no
as a signal that that bit of text should be translated.
Assertion
Google
Microsoft
Yandex
translate no on html
When translate=no on the html element, no content will be translated by an online service.
yes
yes
yes
translate no on p
When translate=no on a p element, the content of that element will NOT be translated by an online service.
yes
yes
yes
translate yes on p
When translate=yes on a p element, the content of that element WILL be translated by an online service.
yes
yes
yes
translate null on p
When translate is set to the null string on a p element, the content of that element WILL be translated by an online service.
yes
yes
yes
translate no on span
When translate=no on a span element, the content of that element will NOT be translated by an online service.
yes
yes
yes
translate yes on span
When translate=yes on a span element in a context where translate has been set to no, the content of that element WILL be translated by an online service.
yes
no
yes
Attributes
Snapshot summary, 2014-11-26
translate
attribute is not set to no
. Here we only check a few of the more common scenarios. We check whether they are translated by default, and also whether they are not translated if the element they are on has translate=no
.alt
and title
attributes (including situations where translation was not expected), but doesn't translate placeholder
text. Nor does it change the lang
attribute.alt
, title
or placeholder
text, but it does change the lang
attribute.
Assertion
Google
Microsoft
Yandex
alt attribute
By default, the value of an alt attribute WILL be translated by an online translation service.
yes
no
yes
title attribute
By default, the value of a title attribute WILL be translated by an online translation service.
yes
no
yes
placeholder attribute
By default, the value of a placeholder attribute WILL be translated by an online translation service.
no
no
yes
lang attribute
By default, the value of a lang attribute WILL be converted by an online translation service to match the target language.
no
yes
yes
alt attribute, translate no
If the tag has translate=no, the value of an alt attribute will NOT be translated by an online translation service.
no
yes
yes
title attribute, translate no
If the tag has translate=no, the value of a title attribute will NOT be translated by an online translation service.
no
yes
yes
placeholder attribute, translate no
If the tag has translate=no, the value of a placeholder attribute will NOT be translated by an online translation service.
yes
yes
yes
lang attribute, translate no
If the tag has translate=no, the value of a lang attribute will NOT be converted by an online translation service.
yes
yes
yes