Home | Index

r3 Reference Guide

r3 dimension dimension attribute

Enables you to create extra data types for each dimension, and to store specific information for that data type for each element.

This command has the following sub-commands:

usage:r3 [-c <arg>] dimension  <dimension>attribute
attribute tools

create                makes an attribute available
set                   set an attribute value
unset                 clear an attribute value
destroy               makes an attribute unavailable
list [-a <arg>] [...  list attribute values

An example of attribute usage can be illustrated with the r3 translation save commands. If no attribute is set for the intl dimension fr, r3 translation save sets the target-language field with the value fr. However if an attribute lang is created for intl and is set to fr-FR for intl fr, the target-language field of the appropriate elements of the XLIFF file is set to fr-FR. The attribute property was set up with this example in mind. However, allowing the user to set arbitrary attributes for particular dimension elements provides for any desired extra information about the element that cannot be put anywhere else.

r3 dimension dimension attribute create

r3 dimension dimension attribute create attribute_name

Creates an new attribute.

aliases
  • none

flags
  • none

r3 dimension dimension attribute set

r3 dimension dimension attribute set dimension_element attribute_name attribute_value

Sets a value for the specified attribute for the specified dimension element.

aliases
  • set | add, tag

flags
  • none

r3 dimension dimension attribute unset

r3 dimension dimension attribute unset dimension_element attribute_name

Removes a value for the specified attribute for the specified dimension element.

aliases
  • unset | clear, remove, untag

flags
  • none

r3 dimension dimension attribute destroy

r3 dimension dimension attribute destroy attribute_name

Removes an attribute name.

aliases
  • none

flags
  • none

r3 dimension dimension attribute list

r3 dimension dimension attribute list

Displays all the attribute values for the specified dimension.

aliases
  • none

flags
  • -a: specifies the attribute name and list only those attribute values.