2.1 KiB
2.1 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | ||
|---|---|---|---|---|---|---|
|
2026-04-17T16:11:50.602393+00:00 | zai-org/GLM-5-FP8 | 1 | 3e8b4564b60b26e9 |
View
Purpose
This module provides localization/internationalization support for the DTS.Viewer.Filter module. It enables XAML-based string resource lookup through a markup extension pattern, allowing UI elements to display localized strings at design-time and runtime without code-behind resource lookups.
Public Interface
TranslateExtension class (inherits MarkupExtension)
TranslateExtension(string key)- Constructor accepting the resource key to look up.object ProvideValue(IServiceProvider serviceProvider)- Returns the localized string for_key, or a fallback error string if not found.- Constant:
NotFound = "#stringnotfound#"- Fallback prefix used when resource lookup fails.
StringResources class (internal, auto-generated)
static ResourceManager ResourceManager { get; }- Lazily-initialized, cached ResourceManager for theDTS.Viewer.Filter.Resources.StringResourcesresource bundle.static CultureInfo Culture { get; set; }- Overrides the current thread's CurrentUICulture for resource lookups.static string Search { get; }- Localized string resource for "Search".
Invariants
ProvideValuealways returns a non-null string.- If
_keyis null or empty,ProvideValuereturns exactlyNotFound("#stringnotfound#"). - If the resource key does not exist in the resource bundle,
ProvideValuereturnsNotFound + " " + _key(e.g., "#stringnotfound# MissingKey"). ResourceManageris lazily instantiated on first access and cached thereafter.
Dependencies
- Depends on:
System,System.Windows.Markup,System.Resources,System.Globalization. - Depended on by: XAML views within the DTS.Viewer.Filter module that use
{local:Translate KeyName}syntax.
Gotchas
StringResources