LocalizedAttribute
Description
- Derived from
-
Attribute abstract
The annotated string constant is a label identifier for localization.
The value of the annotated property is treated as a label identifier for localization.
By convention, names of string constants for label identifiers have a Label*
prefix and the constant value is the localization for the default locale EN and must not be null
. The constant value may be interpreted in one of the following ways:
-
Plain text:
The constant value (or its localization) is displayed without further processing. -
Format pattern:
The constant value (or its localization) is used as the pattern for creating a Format object, which is then used to generate the label text. -
Label pattern:
The constant value (or its localization) is used as the pattern for creating a Label object, which is then used to generate the label text.
The documentation of the string constant must describe how the constant value will be interpreted, so that localized label texts may be authored correctly.
- See also