3.1 KiB
3.1 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | ||
|---|---|---|---|---|---|---|
|
2026-04-17T16:12:22.120307+00:00 | zai-org/GLM-5-FP8 | 1 | 87d5f6e196d99a39 |
Resources
Purpose
This module provides localization infrastructure for the DB Import/Export feature. It contains a WPF markup extension for XAML-based string resource lookup and an auto-generated strongly-typed resource class containing localized strings for file dialog filters, button labels, and validation messages used in database import/export workflows.
Public Interface
TranslateExtension class (MarkupExtension):
TranslateExtension(string key)- Constructor accepting the resource key to look up.object ProvideValue(IServiceProvider serviceProvider)- Returns the localized string for_key, or an error marker if not found.
StringResources class (internal, auto-generated):
static ResourceManager ResourceManager { get; }- Returns the cachedResourceManagerinstance for theDBImportExport.Resources.StringResourcesresource bundle.static CultureInfo Culture { get; set; }- Gets or sets the current UI culture for resource lookups.static string ExportFileBrowse_Filter { get; }- File dialog filter:"DataPRO DB XML File (*.dbxml)|*.dbxml|All Files (*.*)|*.*".static string ExportFileData_Empty { get; }- Message:"No data to export".static string ExportFileName_Empty { get; }- Message:"No export file name specified".static string ExportView_Browse { get; }- Label:"Browse".static string ExportView_File { get; }- Label:"File".static string ImportFileBrowse_Filter { get; }- File dialog filter:"DataPRO DB XML File (*.dbxml)|*.dbxml|All Files (*.*)|*.*".static string ImportView_Browse { get; }- Label:"Browse".static string ImportView_File { get; }- Label:"File".
Invariants
TranslateExtension._keyis immutable after construction (readonly field).ProvideValuealways returns a non-null string; it never returns null.- When
_keyis null or empty,ProvideValuereturns the constant"#stringnotfound#". - When the resource key is not found in the resource manager,
ProvideValuereturns"#stringnotfound# "concatenated with the key name. StringResourcesis markedinternaland cannot be accessed outside its assembly.
Dependencies
- Depends on:
System,System.Windows.Markup,System.Resources,System.Globalization. - Depended on by: Unclear from source alone; presumably XAML files in the DBImportExport module.
Gotchas
- The
TranslateExtensionimplementation is nearly identical to the one inDataPRO/Modules/ISO/ExtraProperties/Resources. This is code duplication; consider extracting to a shared localization library if maintenance becomes an issue. - The
NotFoundconstant value"#stringnotfound#"is duplicated verbatim from the ISO ExtraProperties module. - The
StringResourcesclass is auto-generated; manual edits will be lost when the.resxfile is regenerated.