Files
2026-04-17 14:55:32 -04:00

2.0 KiB

source_files, generated_at, model, schema_version, sha256
source_files generated_at model schema_version sha256
DataPRO/Modules/TestSetups/Diagnostics/Resources/TranslateExtension.cs
DataPRO/Modules/TestSetups/Diagnostics/Resources/StringResources.Designer.cs
2026-04-17T16:12:45.077519+00:00 zai-org/GLM-5-FP8 1 30c046db2cd41539

Resources

1. Purpose

This module provides localization resources specifically for the Diagnostics assembly. It enables XAML-based UI components to bind to localized strings via the TranslateExtension markup extension, and exposes strongly-typed access to culture-specific resources (such as "Channels", "Details", "Groups", "Hardware") through the auto-generated StringResources class.

2. Public Interface

Class: Diagnostics.TranslateExtension

  • public TranslateExtension(string key) — Constructor that accepts the resource key to be localized.
  • public override object ProvideValue(IServiceProvider serviceProvider) — Returns the localized string corresponding to _key. Returns #stringnotfound# if the key is null or empty. Returns #stringnotfound# {key} if the lookup fails.

Class: Diagnostics.Resources.StringResources (internal)

  • internal static global::System.Resources.ResourceManager ResourceManager — Returns the cached ResourceManager instance for the Diagnostics.Resources.StringResources resource set.
  • internal static global::System.Globalization.CultureInfo Culture — Gets or sets the current UI culture for resource lookups.
  • internal static string Channels — Looks up the localized string for "Channels".
  • internal static string Details — Looks up the localized string for "Details".
  • internal static string Groups — Looks up the localized string for "Group(s)".
  • internal static string Hardware — Looks up the localized string for "Hardware".

3. Invariants

  • TranslateExtension never returns null; it returns a fallback string constant #stringnotfound# in error cases.
  • `StringResources