In This Article

Localization

The string resources below are available to localize or customize built-in strings utilized by user prompt. Each string resource is defined in a specific assembly and corresponding namespace.

See the Customizing String Resources topic for additional details.

Shared Library String Resources

The following string resources are defined in the Shared Library assembly and are accessible through types defined in the ActiproSoftware.Properties.Shared namespace:

Resource key Description
UIButtonAbortText The label of the standard Abort button. The default value is "_Abort".
UIButtonCancelText The label of the standard Cancel button. The default value is "Cancel".
UIButtonCloseText The label of the standard Close button. The default value is "C_lose".
UIButtonHelpText The label of the standard Help button. The default value is "Help".
UIButtonIgnoreText The label of the standard Ignore button. The default value is "_Ignore".
UIButtonNoText The label of the standard No button. The default value is "_No".
UIButtonOKText The label of the standard OK button. The default value is "OK".
UIButtonRetryText The label of the standard Retry button. The default value is "_Retry".
UIButtonYesText The label of the standard Yes button. The default value is "_Yes".
UICaptionButtonCloseText The text displayed as the tooltip for the Close caption button used by UserPromptWindow. The default value is "Close".
UICopyButtonFailureText The text displayed on the exception prompt if the CopyButton fails to copy the stack trace. The default value is "Error copying text!".
UICopyButtonSuccessText The text displayed on the exception prompt if the CopyButton successfully copies the stack trace. The default value is "Copied!".
UIDialogTitleErrorText The default title used by UserPromptWindow when an explicit title is not defined and UserPromptControl.StandardStatusIcon is set to Error. The default value is "Error".
UIDialogTitleIndeterminateText The default title used by UserPromptWindow when an explicit title is not defined and UserPromptControl.StandardStatusIcon is set to None or UserPromptControl.StatusIcon is populated. The default value is String.Empty.
UIDialogTitleInformationText The default title used by UserPromptWindow when an explicit title is not defined and UserPromptControl.StandardStatusIcon is set to Information. The default value is "Information".
UIDialogTitleQuestionText The default title used by UserPromptWindow when an explicit title is not defined and UserPromptControl.StandardStatusIcon is set to Question. The default value is "Question".
UIDialogTitleWarningText The default title used by UserPromptWindow when an explicit title is not defined and UserPromptControl.StandardStatusIcon is set to Warning. The default value is "Warning".

This code shows how to set custom values for string resources.

ActiproSoftware.Properties.Shared.SR.SetCustomString(ActiproSoftware.Properties.Shared.SRName.UIButtonRetryText, "T_ry Again");
ActiproSoftware.Properties.Shared.SR.SetCustomString(ActiproSoftware.Properties.Shared.SRName.UIButtonIgnoreText, "Cont_inue");

Fundamentals String Resources

The following string resources are defined in the Fundamentals assembly and are accessible through types defined in the ActiproSoftware.Properties.Fundamentals namespace:

Resource key Description
UIExceptionPromptCopyButtonText The label of the CopyButton displayed on the exception prompt to copy the stack trace. The default value is "Copy to Clipboard".
UIExceptionPromptDetailsLabelText The text of the label displayed on the exception prompt above the stack trace details. The default value is "_Stack Trace:".
UIExceptionPromptToggleDetailsCollapsedText The text of the expanded information toggle on the exception prompt when the stack trace is collapsed. The default value is "Show _details".
UIExceptionPromptToggleDetailsExpandedText The text of the expanded information toggle on the exception prompt when the stack trace is expanded. The default value is "Hide _details".

This code shows how to set custom values for string resources.

ActiproSoftware.Properties.Fundamentals.SR.SetCustomString(ActiproSoftware.Properties.Fundamentals.SRName.UIExceptionPromptCopyButtonText, "Copy Stack Trace");