HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/7745

File a bug

SVNBugCommentTime (UTC)
7745[Tools] Clean up some translation-related things.2013-03-08 23:38
Index: source
===================================================================
--- source	(revision 7744)
+++ source	(revision 7745)
@@ -9532,25 +9532,51 @@
   there is a third state, the <i>inherit</i> state, which is the <i>missing value default</i> (and
   the <i>invalid value default</i>).</p>
 
-  <p>Each element has a <dfn>translation mode</dfn>, which is in either the
-  <span>translate-enabled</span> state or the <span>no-translate</span> state. If the element's
-  <code title="attr-translate">translate</code> attribute is in the <i>yes</i> state, then the
-  element's <span>translation mode</span> is in the <span>translate-enabled</span> state. Otherwise,
-  if the element's <code title="attr-translate">translate</code> attribute is in the <i>no</i>
-  state, then the element's <span>translation mode</span> is in the <span>no-translate</span> state.
-  Otherwise, the element's <code title="attr-translate">translate</code> attribute is in the
-  <i>inherit</i> state; in that case, the element's <span>translation mode</span> is in the same
-  state as its parent element, if any, or in the <span>translate-enabled</span> state, if the
-  element is a <span>root element</span>.</p>
+  <p>Each element (even non-HTML elements) has a <dfn>translation mode</dfn>, which is in either the
+  <span>translate-enabled</span> state or the <span>no-translate</span> state. If an <span
+  title="HTML elements">HTML element</span>'s <code title="attr-translate">translate</code>
+  attribute is in the <i>yes</i> state, then the element's <span>translation mode</span> is in the
+  <span>translate-enabled</span> state; otherwise, if the element's <code
+  title="attr-translate">translate</code> attribute is in the <i>no</i> state, then the element's
+  <span>translation mode</span> is in the <span>no-translate</span> state. Otherwise, either the
+  element's <code title="attr-translate">translate</code> attribute is in the <i>inherit</i> state,
+  or the element is not an <span title="HTML elements">HTML element</span> and thus does not have a
+  <code title="attr-translate">translate</code> attribute; in either case, the element's
+  <span>translation mode</span> is in the same state as its parent element's, if any, or in the
+  <span>translate-enabled</span> state, if the element is a <span>root element</span>.</p>
 
-  <p>When an element is in the <dfn>translate-enabled</dfn> state, the element's attribute values
-  and the values of its <code>Text</code> node children are to be translated when the page is
-  localized.</p>
+  <p>When an element is in the <dfn>translate-enabled</dfn> state, the element's <span>translatable
+  attributes</span> and the values of its <code>Text</code> node children are to be translated when
+  the page is localized.</p>
 
   <p>When an element is in the <dfn>no-translate</dfn> state, the element's attribute values and the
   values of its <code>Text</code> node children are to be left as-is when the page is localized,
   e.g. because the element contains a person's name or a the name of a computer program.</p>
 
+  <p>The following attributes are <dfn>translatable attributes</dfn>:</p>
+
+  <ul class="brief">
+   <li><code title="attr-th-abbr">abbr</code> on <code>th</code> elements</li>
+   <li><code title="">alt</code> on <code title="attr-area-alt">area</code>,
+                                    <code title="attr-img-alt">img</code>, and
+                                    <code title="attr-input-alt">input</code> elements</li>
+   <li><code title="attr-meta-content">content</code> on <code>meta</code> elements, if the <code title="attr-meta-name">name</code> attribute specifies a metadata name whose value is known to be translatable</li>
+   <li><code title="">download</code> on <code title="attr-a-download">a</code> and
+                                         <code title="attr-area-download">area</code> elements</li>
+   <li><code title="">label</code> on <code title="attr-menuitem-label">menuitem</code>,
+                                      <code title="attr-menu-label">menu</code>,
+                                      <code title="attr-optgroup-label">optgroup</code>,
+                                      <code title="attr-option-label">option</code>, and
+                                      <code title="attr-track-label">label</code> elements</li>
+   <li><code title="attr-lang">lang</code> on <span>HTML elements</span>; must be "translated" to match the language used in the translation</li>
+   <li><code title="">placeholder</code> on <code title="attr-input-placeholder">input</code> and
+                                            <code title="attr-textarea-placeholder">textarea</code> elements</li>
+   <li><code title="attr-iframe-srcdoc">srcdoc</code> on <code>iframe</code> elements; must be parsed and recursively processed</li>
+   <li><code title="attr-style">style</code> on <span>HTML elements</span> elements; must be parsed and recursively processed (e.g. for the values of 'content' properties)</li>
+   <li><code title="attr-title">title</code> on all <span>HTML elements</span> elements</li>
+   <!-- <input value> is excluded since we can't predict if it interferes with server-side processing -->
+  </ul>
+
   <div class="impl">
 
   <hr>
@@ -95870,7 +95896,7 @@
   title="">value</var>. If its previous value <em>is</em> equal to <var title="">value</var>, then
   the method must do nothing.</p>
 
-  <p>If it couldn't set the new value, the method must throw an <code>QuotaExceededError</code>
+  <p>If it couldn't set the new value, the method must throw a <code>QuotaExceededError</code>
   exception. (Setting could fail if, e.g., the user has disabled storage for the site, or if the
   quota has been exceeded.)</p>
 

|