init
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
---
|
||||
source_files:
|
||||
- DataPRO/Modules/TestSetups/TestSetupsList/Resources/TranslateExtension.cs
|
||||
- DataPRO/Modules/TestSetups/TestSetupsList/Resources/StringResources.Designer.cs
|
||||
generated_at: "2026-04-17T16:12:45.079196+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "b088df474836561f"
|
||||
---
|
||||
|
||||
# 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
|
||||
Reference in New Issue
Block a user