Files
DP44/docs/ai/DataPRO/Modules/Groups/GroupList/Resources.md
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/Groups/GroupList/Resources/TranslateExtension.cs
DataPRO/Modules/Groups/GroupList/Resources/StringResources.Designer.cs
2026-04-17T16:12:38.870054+00:00 zai-org/GLM-5-FP8 1 075ddccdc71b15d4

Resources

1. Purpose

This module provides localization infrastructure for the GroupList assembly. It contains a XAML markup extension for declarative string lookup and a strongly-typed resource accessor class generated from a .resx file. It centralizes UI string management for group-related views (e.g., "AssociatedTestSetups", "Channels", "Description").

2. Public Interface

Class: TranslateExtension (inherits MarkupExtension)

  • TranslateExtension(string key): Constructor that accepts the resource key to look up.
  • object ProvideValue(IServiceProvider serviceProvider): Returns the localized string for the stored _key. Returns #stringnotfound# if the key is null/empty, or #stringnotfound# {key} if the lookup fails.

Class: StringResources (internal, auto-generated)

  • static ResourceManager ResourceManager: Gets the cached ResourceManager instance for the GroupList.Resources.StringResources resource set.
  • static CultureInfo Culture: Gets or sets the current UI culture for resource lookups.
  • static string AssociatedTestSetups: Looks up the "AssociatedTestSetups" string.
  • static string Channels: Looks up the "Channels" string.
  • static string Description: Looks up the "Description" string.
  • static string LastModified: Looks up the "LastModified" string.
  • static string LastModifiedBy: Looks up the "LastModifiedBy" string.
  • static string Name: Looks up the "Name" string.
  • static string TemplateName: Looks up the "TemplateName" string.

3. Invariants

  • TranslateExtension._key is immutable after construction (readonly).
  • TranslateExtension always returns a non-null string; it never throws on missing keys, instead returning a specific error constant.
  • `