init
This commit is contained in:
39
docs/ai/DTS Viewer/DTS.Viewer/Resources.md
Normal file
39
docs/ai/DTS Viewer/DTS.Viewer/Resources.md
Normal file
@@ -0,0 +1,39 @@
|
||||
---
|
||||
source_files:
|
||||
- DTS Viewer/DTS.Viewer/Resources/TranslateExtension.cs
|
||||
- DTS Viewer/DTS.Viewer/Resources/StringResources.Designer.cs
|
||||
generated_at: "2026-04-17T16:12:03.600226+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "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
|
||||
-
|
||||
Reference in New Issue
Block a user