slide 31
Copyright © 2005 W3C (MIT, ERCIM, Keio)
Localization Note
Data categories
<head>
<its:rules its:version="1.0" its:translate="no" >
<its:locNoteRule locNoteType="alert"
selector=" //msg[@class='DisableInfo'] ">
<its:locNote> The variable {0} has three possible values: 'printer',
'stacker' and 'stapler options'. </its:locNote>
</its:locNoteRule>
</its:rules>
</head>
<body>
<msg class="DisableInfo"> The {0} has been disabled. </msg>
</body>
Global use:
Go to previous slide Go to next slide Go to the first slide Go to the slide index Go to the PDF version
Slide 31 of 50
This example shows global rules that select all msg elements with the class attribute value set to "DisableInfo" and associate them with a note that describes how the message is to be used. It also gives this note a type of 'alert'.
Note, also, that we used an its:translate="no" attribute locally on the ITS global rules markup to indicate that the note itself should not be translated.
[Note that using text such as "The X has been disabled" in this way is very bad practice! For more information about that see the W3C I18n article "Using Composite Messages".]
"