class %CSP.TagLanguage extends %CSP.Rule

Implement csp:text tag using a common method, GetText that may be used to implement other language enabled tags.


Parameters Properties Methods Queries Indices ForeignKeys Triggers


Children Closed Family HasEndTag LineNumber
NewSection Parent Rule TagAttributes TagName
Text TextOnly
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OnNew %OriginalNamespace
%PackageName %RemoveFromSaveSet %SerializeObject %SetModified
%ValidateObject AddChildElement FormatMessage GetAttribute
GetAttributesOrdered GetText HasValue InitAttribute
InnerText IsDefined OnMatch PopDefaultSection
PushDefaultSection QuoteAttribute RenderDefaultEndTag RenderDefaultStartTag
RenderEndTag RenderStartTag SetAttribute ValidateTag
WriteCSPServer WriteCSPText WriteExpressionText WriteServer


final classmethod FormatMessage(language As %String, domain As %String, id As %String, default As %String, args...) as %String
FormatMessage wrapper for use in CSP page.
classmethod GetText(tag As %CSP.Rule, default As %String = "") as %String
Return the expression that will get localized text based on the textid, domain and language attributes. GetText should be called from within a rule.

The optional Language attribute is an RFC 1766 format language name for looking up this text. %response.Language is used if Language is not specified. The Domain attribute is the optional application domain for looking up this text. %response.Domain is used if Domain is not specified. The required TextId attribute is the id that idenfies the text string. Attributes ARGn, where n is an integer, are substituted for %n in the message text.

method RenderEndTag() as %Status
No end tag written.
method RenderStartTag() as %Status
Call ..GetText to implement the csp:text tag.
Copyright © 1997-2020 InterSystems Corporation, Cambridge, MA