--- source_files: - DTS Viewer/DTS.Viewer.Modules/DTS.Viewer.Graph/Resources/TranslateExtension.cs - DTS Viewer/DTS.Viewer.Modules/DTS.Viewer.Graph/Resources/StringResources.Designer.cs generated_at: "2026-04-17T16:11:57.317533+00:00" model: "zai-org/GLM-5-FP8" schema_version: 1 sha256: "324d8a7946627095" --- # Resources ### Purpose This module provides localization support for the Graph module through a XAML markup extension and strongly-typed resource access. It follows the same pattern as the ViewerSettings/Resources module but contains graph-specific localized strings for error messages, status messages, and save operation feedback related to chart and report operations. ### Public Interface **TranslateExtension** (inherits `MarkupExtension`) - `TranslateExtension(string key)` - Constructor accepting the resource key to look up. - `ProvideValue(IServiceProvider serviceProvider)` - Returns the localized string from `StringResources.ResourceManager.GetString(_key)`. Returns `"#stringnotfound#"` if key is null/empty, or `"#stringnotfound# " + _key` if the key is not found in resources. **StringResources** (auto-generated) - `ResourceManager` - Static property returning the cached `ResourceManager` instance for the `"DTS.Viewer.Graph.Resources.StringResources"` resource name. - `Culture` - Static property for getting/setting the `CultureInfo` for resource lookups. - `BadDataFromCustomFilter` - Error message for custom filter frequency out of bounds (includes format placeholders `{0}`, `{1}`