W3C home > Mailing lists > Public > public-i18n-its@w3.org > July to September 2006

[Bug 3362] method for translatability of attributes not clear

From: <bugzilla@wiggum.w3.org>
Date: Sat, 08 Jul 2006 14:02:25 +0000
CC:
To: public-i18n-its@w3.org
Message-Id: <E1FzDO5-0003Dl-Qp@wiggum.w3.org>

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:43:07 UTC