Creating Translated Text Attributes
A translated text attribute is a read-only attribute that displays the translated text for the associated source text attribute, as determined by the user’s language configuration setting. To display translated text for an attribute, a translated text attribute must be created. For more information about user language configuration setting, see User Language Configuration.
Translated text attributes can be created only on the Part Master, and Part types and their subtypes, including Information Base and its subtypes.
If you have Windchill Service Parts installed, translated text attributes can also be created on the following types and subtypes:
1. Parts List
Description
Information Type
Name
2. Parts List Item
Remarks
Item Quantity
3. Any Global attributes created using the Type and Attribute Management utility.
By default, Translation Name translated text attributes are provided associated with the Name attribute on the Parts List, and Part Master types. There is an alias attribute on Part that displays the Part Master Name translations. If you need translations for other attributes at your site, you must create the appropriate translated text attributes for those attributes.
For each translated text attribute that you create, you must specify the Source Text Attribute (the attribute for which the translated text is displayed) and the Translation Dictionary (the object where the source and its associated translations are stored). For more information, see Setting Up Translated Text Attributes. The Source Text Attribute is selected from the list of available String data type attributes. Available String data type attributes are those which meet the following criteria:
Are defined on the current type. String data type attributes inherited from a parent type cannot be used as source text attributes.
Are a modeled, global, or standard attribute. Alias and calculated attributes cannot be used as source text attributes. For modelled attributes on out-of-the-box types, only certain attributes can be translated. Refer to the list above.
Are not already associated to a translated text attribute. Once a source text attribute has been associated with a translated text attribute, that source text attribute is no longer available for selection to create a translated text attribute.
* 
PTC recommends establishing a naming convention for translated text attributes. Decide whether the Display Name attribute for your translated text attributes will match the Display Name attribute of the associated source text attribute, or if you will follow a separate naming convention. The Display Name for the out-of-the-box translated text attribute for the Parts List, Parts List Master, and Part Master types’ Name attributes is Translation Name.
If you update the out-of-the-box Display Name attribute for any attribute, you may need to update the localized display name for the software languages installed with your Windchill solution. For more information, see Localizing Property Values.
For more information, see Creating a New Attribute.
Once created, you must add the translated text attributes to attribute layouts and table views to display them. For more information, refer to Adding Translated Text Attributes to Attribute Layouts and Adding Translated Text Attributes to Table Views.
* 
When a translated text attribute is created from a non-translatable or non-existing source text attribute, the translation attribute's value is displayed in the UI as:
??? — Where there is no source attribute or source attribute does not have any value
source_attr_val+??? — Where source attribute is non-translatable
To make a source attribute of string data type translatable, add isTranslatable property with value true. For example,
<csvPropertyValue handler="com.ptc.core.lwc.server.TypeDefinitionLoader.processAttributePropertyValue">
<csvname>isTranslatable</csvname>
<csvvalue>true</csvvalue></csvPropertyValue>
Isto foi útil?