[Bug 3362] method for translatability of attributes not clear

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3362





------- Comment #3 from ysavourel@translate.com  2006-07-08 14:02 -------
To clarify the aspect of attribute translatablity as well as inheritance, I
would propose to make the following changes to the section 2.6
(http://www.w3.org/TR/its/#translate)

- Current text:

[[The data category translatability expresses information about whether the
content of an element or attribute should be translated or not. The values of
this data category are "yes" (translatable) or "no" (not translatable).]]

- Proposed text:

[[The data category translatability expresses information about whether the
content of an element or attribute should be translated or not. The values of
this data category are "yes" (translatable) or "no" (not translatable). By
default, element content is translatable, and attribute values are not
translatable.]]

---

- Current text:

[[As for global rules, translatability is expressed with a translateRule
element with a translate attribute. The attribute has the values "yes" or "no".
In addition, a selector attribute is required.

Example 20: Translatability expressed globally

<its:rules its:version="1.0">
 <its:translateRule translate="yes" selector="//p"/>
 <!-- All p elements should be translated-->
</its:rules>]]

- Proposed text:

[[Globally, translatability is expressed with a translateRule element. A
required selector attribute indicates to what part of the document the rule
applies, and a required translate attribute indicates whether the selection is
translatable or not. The selection is the textual content of the element,
including child elements, but excluding attributes."

Example 20: Translatability expressed globally

<its:rules its:version="1.0">
 <!-- All alt attribute are translatable -->
 <its:translateRule selector="//*/@alt" translate="yes" />
 <!-- All del elements are not translatable -->
 <its:translateRule selector="//del" translate="no" />
 <!-- All alt attributes inside a del element are not translatable -->
 <its:translateRule selector="//h:del/descendant-or-self::*/@*"
translate="no"/>
</its:rules>]]

---

- Current text:

[[Locally, translatability is expressed with a translate attribute with the
values "yes" or "no" The selection is the textual content of the element,
including child elements, but excluding attributes.]]

- Proposed text:

[[Locally, translatability is expressed with a translate attribute with the
values "yes" or "no" The selection is the textual content of the element,
including child elements, but excluding attributes. It is not possible to
override the translatability of attributes using local markup. This limitation
is consistent with the adviced practice of not using translatable attributes.]]

(with "adviced practice" linked to the Best Practices document).

Received on Saturday, 8 July 2006 14:02:36 UTC