Files
DP44/docs/ai/DTS Viewer/DTS.Viewer/Resources.md
2026-04-17 14:55:32 -04:00

1.9 KiB

source_files, generated_at, model, schema_version, sha256
source_files generated_at model schema_version sha256
DTS Viewer/DTS.Viewer/Resources/TranslateExtension.cs
DTS Viewer/DTS.Viewer/Resources/StringResources.Designer.cs
2026-04-17T16:12:03.600226+00:00 zai-org/GLM-5-FP8 1 4d3d5da77d9b6b31

Resources

Purpose

This module provides localization infrastructure for the DTS Viewer application. It contains a WPF markup extension for XAML binding to localized strings and an auto-generated strongly-typed resource class that wraps access to the underlying .resx resource file.

Public Interface

TranslateExtension (class)

  • Inherits: MarkupExtension
  • Attribute: [MarkupExtensionReturnType(typeof(string))]
  • Constructor: TranslateExtension(string key) — Stores the resource key for lookup.
  • 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.

StringResources (class)

  • Attribute: internal
  • static ResourceManager ResourceManager — Gets the cached ResourceManager instance for this assembly.
  • static CultureInfo Culture — Gets or sets the current UI culture for resource lookups.
  • Resource String Properties (static getters):
    • string ChartOptionsHeader — Localized string "Chart Options".
    • string GraphsDefaultTitle — Localized string "Graphs ".
    • string ModificationsHeader — Localized string "Modify".
    • string SavePDFError — Localized string "Error occurred saving chart to PDF".
    • string SavePDFSuccess — Localized string "Chart saved succesfully as {0}{1} and {2}{3}".
    • string SettingsTitle — Localized string "Settings".
    • string TestIDsDefaultTitle — Localized string "Test IDs".
    • string TestsDefaultTitle — Localized string "Tests ".

Invariants