Translatable Data

 

 

 

The WPF data that should be supported for translation with RC-WinTrans and modified with the WPF GUI Editor is specified in XML parser stylesheets (.xsl).

 

See also:  "XML Parser Stylesheets."

 

Tables 1, 2 and 3 below provide lists of those XAML attributes and elements that can be designated as translatable.

 

Table 1:  Translatable attributes.

XAML Attribute

Description

·

Title

Text data.

·

Content

Text data.

·

Header

Text data.

·

Text

Text data.

·

Tooltip

Text data.

·

FontFamily

The name of a font.

·

Width

The width of an element.

·

Height

The height of an element.

·

Margin

The margin of an element.

 

 

Table 2:  Translatable elements texts.

XAML Element Text

Description

·

<Element-Name  text>

Text data; the element text of a selection of XAML elements as it has been used in XAML files created with Visual Studio 2005 and 2008.

·

<String   text>

Element text of string elements; system string (mscorlib.dll).

 

 

Table 3:  Additional translatable attributes from  ComponetOne  WPF controls.

XAML Attribute

Description

·

<DataSeries> Label

 

·

<FlexGrid>  <Column> Header

 

·

<ChartData> ItemNames

 

 

 

Adding/Removing Elements with the WPF GUI Editor

All the attributes of an element are listed and modifiable in the "Properties" view.  The Editor is also capable of adding and removing WPF controls (though such changes will not be saved - see "Note 2" below).

Note 1:  Only the value of attributes listed in Table 1 are saved to the RC-WinTrans translation database and translated in the target file.

Note 2:  The WPF GUI Editor permits the addition and removal of elements but these changes are ignored when a file is saved.  Adding/Removing elements has no effect on the translation database or the translated target file.  The target file always contains the attributes and elements as they exist in the source file- no more, no less.