Files
DP44/docs/ai/DataPRO/Modules/SystemSettings/ISOSettings/Resources.md
2026-04-17 14:55:32 -04:00

2.6 KiB

source_files, generated_at, model, schema_version, sha256
source_files generated_at model schema_version sha256
DataPRO/Modules/SystemSettings/ISOSettings/Resources/TranslateExtension.cs
DataPRO/Modules/SystemSettings/ISOSettings/Resources/StringResources.Designer.cs
2026-04-17T15:57:33.768149+00:00 zai-org/GLM-5-FP8 1 19788904cc250d5c

Documentation: ISOSettings Resources Module

1. Purpose

This module provides localization/internationalization infrastructure for the ISOSettings component within the SystemSettings module. It consists of a WPF XAML markup extension (TranslateExtension) that enables declarative string resource lookups in XAML bindings, and a strongly-typed resource accessor class (StringResources) that wraps a .resx resource file containing UI strings related to ISO configuration options. The module exists to centralize localizable strings for ISO-related settings, supporting potential multi-language deployments.


2. Public Interface

TranslateExtension (class)

Namespace: ISOSettings.Resources
Inheritance: System.Windows.Markup.MarkupExtension
Attribute: [MarkupExtensionReturnType(typeof(string))]

A XAML markup extension that resolves resource keys to localized strings at runtime.

Member Signature Description
Constructor TranslateExtension(string key) Initializes the extension with the resource key to look up. Stores the key in a private readonly field _key.
ProvideValue public override object ProvideValue(IServiceProvider serviceProvider) Returns the localized string for _key from StringResources.ResourceManager. Returns NotFound constant if _key is null or empty. Returns NotFound + " " + _key if the resource key does not exist in the resource file.

Constants:

  • private const string NotFound = "#stringnotfound#" — Fallback value returned when a resource key is invalid or missing.

StringResources (class)

Namespace: ISOSettings.Resources
Visibility: internal
Attributes: [GeneratedCode], [DebuggerNonUserCode], [CompilerGenerated]

An auto-generated strongly-typed resource class providing access to localized strings. This class is auto-generated and should not be manually edited.

Member Signature Description
ResourceManager internal static global::System.Resources.ResourceManager ResourceManager { get; } Returns a cached ResourceManager instance for the ISOSettings.Resources.StringResources resource bundle. Lazily initialized on first access.
Culture