UIString

Container for UI string - either raw value or string resource ID

Set resource id (string) or plain unicode text (dstring) to it, and get dstring.

Constructors

this
this(string id)

create string with i18n resource id

this
this(dstring value)

create string with raw value

this
this(string id, dstring fallbackValue)

create string with resource id and raw value as fallback for missing translations

Alias This

value

Default conversion to dstring

Members

Functions

opAssign
UIString opAssign(string ID)

Assign string resource id

opAssign
UIString opAssign(dstring rawValue)

Assign raw value

Properties

id
string id [@property getter]

Returns string resource id

id
string id [@property setter]

Sets string resource id

value
dstring value [@property getter]

Get value (either raw or translated by id)

value
dstring value [@property setter]

Set raw value using property

Meta