Re: ISSUE-97 html translate, and global rules and inheritance

Hi,

if we point to the link you posted, then just a sentence before we have:
"Otherwise, either the element's translate attribute is in the inherit 
state, or the element is not an HTML element and thus does not have a 
translate attribute; in either case, the element's translation mode is 
in the same state as its parent element's, if any, or in the 
translate-enabled state, if the element is a root element."

Which for me basically means inheritance is given and default is yes. So 
the image alt text would be translatable. The "img" element would be 
translatable, but hasn't any text-node children, so there is nothing to 
translate here.

Cheers,
Karl

On 02.05.2013 06:47, Felix Sasaki wrote:
> Hi all,
>
> As we discussed, bringing HTML "translate" into ITS 2.0 is not about 
> defaults like with "elements within text", "id value" or "language 
> information". It's rather about the interaction between elements and 
> attributes defined within HTML5.x, see e.g.
>
> http://www.w3.org/html/wg/drafts/html/master/dom.html#the-translate-attribute 
>
>
> "When an element is in the translate-enabled state, the element's 
> translatable* attributes and the values of its Text node children are 
> to be translated when the page is localized."
>
> * points to the list of translatable attributes.
>
> If we would adopt such an interaction (or just refer to above 
> definition), what would that mean for global rules and inheritance?
>
> Suppose I have
>
> <p> ... <img alt="..."/>...</p>
> and this translate rule
> <its:translateRule selector="//h:p" translate=yes"/>
>
> or just locally
>
> <p translate="yes"> ... <img alt="..."/>...</p>
>
> would both the "img" element and "img", including "alt" be translatable?
>
> Above definition talks about translatable elements like this
> "When an element is in the translate-enabled state, the element's 
> translatable attributes and the values of its Text node children are 
> to be translated when the page is localized."
>
> This means no inheritance to elements, but only application to text 
> nodes.
>
> Best,
>
> Felix
>
>


-- 
*Karl Fritsche*, Software Developer
Tel.: +49 69 972 69 2604; Mob.: +49 1520 206 30 93; Fax: +49 69 972 69 
199; Email: Karl.Fritsche@cocomore.com <mailto:karl.fritsche@cocomore.com>
*Cocomore AG,* Gutleutstraße 30, D-60329 Frankfurt
Internet: http://www.cocomore.de <http://www.cocomore.de/> Facebook: 
http://www.facebook.com/cocomore Google+: http://plus.cocomore.de 
<http://plus.cocomore.de/>
Cocomore is active member of the World Wide Web Consortium (W3C)
Vorstand: Dr. Hans-Ulrich von Freyberg (Vors.), Dr. Jens Fricke, Marc 
Kutschera, Vors. des Aufsichtsrates: Martin Velasco, Sitz: 
Frankfurt/Main, Amtsgericht Frankfurt am Main, HRB 51114

Received on Thursday, 2 May 2013 07:40:17 UTC