24 lines
1.2 KiB
Markdown
24 lines
1.2 KiB
Markdown
---
|
|
source_files:
|
|
- DataPRO/Modules/RegionOfInterest/RegionOfInterestChannels/Resources/TranslateExtension.cs
|
|
- DataPRO/Modules/RegionOfInterest/RegionOfInterestChannels/Resources/StringResources.Designer.cs
|
|
generated_at: "2026-04-17T16:28:42.807502+00:00"
|
|
model: "zai-org/GLM-5-FP8"
|
|
schema_version: 1
|
|
sha256: "d7f01f47dc29f209"
|
|
---
|
|
|
|
# Resources
|
|
|
|
### Purpose
|
|
This module provides localization infrastructure for the RegionOfInterestChannels subsystem. It includes a WPF markup extension for XAML-based string localization and a strongly-typed resource class containing user-facing messages related to channel-to-ROI (Region of Interest) assignments and validation warnings.
|
|
|
|
### Public Interface
|
|
|
|
**`TranslateExtension` (class, inherits `MarkupExtension`)**
|
|
- `public TranslateExtension(string key)` — Constructor accepting a resource key.
|
|
- `public override object ProvideValue(IServiceProvider serviceProvider)` — Returns localized string for the key, or `"#stringnotfound# <key>"` if not found. Returns `"#stringnotfound#"` if key is null or empty.
|
|
- Decorated with `[MarkupExtensionReturnType(typeof(string))]` for XAML type safety.
|
|
|
|
**`StringResources` (internal sealed class)**
|
|
- `internal static global::System.Resources.Resource |