# LocalizedMessageTemplateContentType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Supertype: MessageTemplateContentType
Single language localization for the message template. If `attachmentExpression` is not specified, the one from the default content will be used. If no `attachment` is specified, the ones from the default content will be used. This allows for language specific attachments without the need to re-specify the ones that are not language specific. It is also possible to override `attachmentExpression` for language specific one and leave out `attachment` to use the ones defined in `attachment` element of the default content.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
subjectExpression | property ExpressionType | [0,1] | How to construct the subject of the message that is to be sent.
bodyExpression | property ExpressionType | [0,1] | How to construct the body (text) of the message that is to be sent.
contentType | property string | [0,1] | Body content type, e.
attachment | container NotificationMessageAttachmentType | [0,-1] | Message attachment(s) to be sent out.
attachmentExpression | property ExpressionType | [0,1] | An expression that returns message attachment(s) to be sent out.
language | property string | [0,1] | Indicates the language used for the message template content.

- ### Items

  - #### subjectExpression

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    How to construct the subject of the message that is to be sent.

  - #### bodyExpression

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    How to construct the body (text) of the message that is to be sent.

  - #### contentType

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Body content type, e.g. text/plain (the default), text/html, and so on.

  - #### attachment

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    Display order:

    Message attachment(s) to be sent out. Can be combined with `attachmentExpression`.

  - #### attachmentExpression

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    An expression that returns message attachment(s) to be sent out. Returned objects should be of type NotificationMessageAttachmentType.

  - #### language

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Indicates the language used for the message template content. The format is IETF language tag defined in BCP 47, where underscore is used as a subtag separator. This is usually a ISO 639-1 two-letter language code optionally followed by ISO 3166-1 two-letter country code separated by underscore. The languages that do not have country-specific variants are usually specified by using a two-letter country code ("sk", "cs", "tr"). Languages with country-specific variants have country-specific subtags ("pt_BR", "zn_CN").