%ZHSLIB.PackageManager.Developer.Processor.LocalizationExport

class %ZHSLIB.PackageManager.Developer.Processor.LocalizationExport extends %ZHSLIB.PackageManager.Developer.Processor.Abstract

Resource processor to automatically export messages in given list of domains to a particular file after compilation. This works with a resource like /localize/MessageFileName.xml (Domains attribute required; resource name used as export target), or MyPackage.Errors.LOC (Filename attribute required; Domains populated automatically from the message file) For .LOC resources, the default resource processor class (%ZHSLIB.PackageManager.Developer.Processor.Default.LocalizedErrorMessages) should be used instead.

Property Inventory (Including Private)

Method Inventory (Including Private)

Parameters

parameter ATTRIBUTES = Domains,Filename;
Comma-separated list of resource attribute names that this processor uses
parameter DESCRIPTION = Exports messages for localization after the module is compiled.;
Description of resource processor class (shown in UI)

Properties

property Domains as %String);
Comma-separated list of domains to export to the specified file. For .LOC documents, this is determined automatically and is not overridable.
Property methods: DomainsDisplayToLogical(), DomainsGet(), DomainsIsValid(), DomainsLogicalToDisplay(), DomainsLogicalToOdbc(), DomainsNormalize(), DomainsSet()
property Filename as %String (MAXLEN = 255);
Filename to export to. For .LOC documents, this is required; otherwise, this is set to the resource name and is not overridable.
Property methods: FilenameDisplayToLogical(), FilenameGet(), FilenameIsValid(), FilenameLogicalToDisplay(), FilenameLogicalToOdbc(), FilenameNormalize(), FilenameSet()

Methods

private method %OnValidateObject() as %Status [ Language = objectscript ]
This callback method is invoked by the %ValidateObject() method to provide notification that the current object is being validated.

If this method returns an error then %ValidateObject() will fail.

method GetDomainsForResource() as %String [ Language = objectscript ]
Returns a comma-separated list of domains for the specified resource.
method OnBeforePhase(pPhase As %String, ByRef pParams) as %Status [ Language = objectscript ]

Inherited Members

Inherited Properties (Including Private)

Inherited Methods (Including Private)

Feedback