7.2 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | |
|---|---|---|---|---|---|
|
2026-04-16T11:57:17.552440+00:00 | zai-org/GLM-5-FP8 | 1 | 60d8743ec190cc64 |
Documentation: DTS.Common.Strings (Strings.Designer.cs)
1. Purpose
This module is an auto-generated strongly-typed resource class that provides localized string constants for the DTS CommonCore library. It serves as the central access point for UI strings, error messages, status labels, and configuration descriptions used throughout the DTS system. The class wraps a .resx resource file, enabling localization and consistent string management across the application. This file is machine-generated by the StronglyTypedResourceBuilder tool and should not be manually edited.
2. Public Interface
Class: DTS.Common.Strings.Strings
All members are static. The class cannot be instantiated (internal constructor).
| Member | Signature | Description |
|---|---|---|
ResourceManager |
public static global::System.Resources.ResourceManager ResourceManager { get; } |
Returns the cached ResourceManager instance for this assembly. Lazily initialized on first access. The resource base name is "DTS.Common.Strings.Strings". |
Culture |
public static global::System.Globalization.CultureInfo Culture { get; set; } |
Gets or sets the current CultureInfo for resource lookups. Overrides the thread's CurrentUICulture for all lookups via this class. |
Selected String Properties (partial list — file is truncated)
All string properties follow the pattern: public static string PropertyName { get; } and call ResourceManager.GetString("key", resourceCulture).
| Property | Default Value (English) | Context |
|---|---|---|
ActiveValue |
"Active value" | General status |
Analog |
"Bridge" | Hardware type |
Armed |
"Armed" | System status |
ArmSystem_WaitingForNextInterval |
"Waiting for next interval" | Arming workflow |
BAD_NETPATH_ERROR_MSG |
"Could not connect to network path, please check network connections" | Network error |
BRIDGETYPE_ACC_DESCRIPTION |
"ACC" | Bridge type |
BRIDGETYPE_ARS_DESCRIPTION |
"ARS" | Bridge type |
BRIDGETYPE_IEPE_DESCRIPTION |
"IEPE" | Bridge type |
CAC_Capacity |
"Capacity" | Calibration |
CalculatedChannel_Average |
"Average" | Calculated channel type |
CalculatedChannel_IRTRACC3D_Abdomen |
"3D IR-TRACC (abdomen)" | IR-TRACC sensor position |
CalculatedChannel_Resultant |
"Resultant" | Calculated channel type |
CalibrationBehaviors_LinearIfAvailable |
"Use linear sensitivity, if available" | Calibration behavior |
ClockSyncProfile_Auto_E2E |
"PTP (E2E) Automatic" | Clock synchronization profile |
ClockSyncProfile_Disabled |
"Disabled" | Clock synchronization profile |
ClockSyncProfile_GPS |
"GPS In" | Clock synchronization profile |
ClockSyncProfile_IRIG |
"IRIG B In" | Clock synchronization profile |
DASStatus_ARMED |
"Armed" | DAS (Data Acquisition System) status |
DASStatus_Offline |
"Offline" | DAS status |
DASStatus_Online |
"Online" | DAS status |
DASStatus_READYFORDL |
"Ready for download" | DAS status |
DigitalInputMode_CCNC |
"Contact closure normally closed" | Digital input mode |
DigitalInputMode_TLH |
"Transition low to high" | Digital input mode |
FilterClassType_CFC1000 |
"CFC 1000 (A)" | Filter class (ISO 6487) |
FilterClassType_CFC600 |
"CFC 600 (B)" | Filter class |
FilterClassType_Unfiltered |
"Unfiltered (0)" | Filter class |
GeneratingPSD |
"Calculating PSD... ({0})" | PSD calculation progress |
GeneratingPSD_CalculatingFFTs |
"Calculating FFTs" | FFT processing status |
HIC |
"HIC" | Head Injury Criterion |
IEPE |
"IEPE" | Integrated Electronics Piezo-Electric |
InputClockSource_GPS |
"GPS" | Clock source |
InputClockSource_IRIG |
"IRIG B" | Clock source |
InvalidCharacterInSerialNumber |
"Error: Invalid character in serial number," | Validation error |
ISO13499Code |
"ISO (13499) code" | ISO-MME standard |
LevelTrigger_GreaterThan |
"Greater than" | Trigger condition |
LevelTrigger_TriggerInside |
"between {0} and {1} ({2})" | Trigger condition (formatted) |
NotApplicable |
"N/A" | General placeholder |
(The source file is truncated; additional properties exist but are not visible in the provided excerpt.)
3. Invariants
- Auto-generation marker: The file is decorated with
GeneratedCodeAttributeindicating tool generation. Manual edits will be overwritten. - Singleton ResourceManager: The
ResourceManagerproperty lazily initializes exactly one instance and caches it in the privateresourceManfield. - Thread-safety of ResourceManager initialization: Uses a temporary local variable pattern (
temp) before assigning to the static field to avoid race conditions. - Immutable property signatures: All string properties are read-only getters; there are no setters.
- Resource base name: The ResourceManager is initialized with the base name
"DTS.Common.Strings.Strings"and the executing assembly. - Internal constructor: The
Strings()constructor is markedinternalwith a suppression forCA1811(AvoidUncalledPrivateCode), preventing external instantiation.
4. Dependencies
This module depends on:
System.Resources.ResourceManager— for resource lookupSystem.Globalization.CultureInfo— for culture-specific string retrievalSystem.CodeDom.Compiler— forGeneratedCodeAttributeSystem.Diagnostics— forDebuggerNonUserCodeAttributeSystem.Runtime.CompilerServices— forCompilerGeneratedAttributeSystem.ComponentModel— forEditorBrowsableAttributeSystem.Diagnostics.CodeAnalysis— forSuppressMessageAttribute
The underlying .resx file:
- A companion file
Strings.resx(not shown) contains the actual key-value pairs and is the source for this designer file.
What depends on this module:
- Unknown from source alone — any component in the DTS codebase that requires localized strings may reference
DTS.Common.Strings.Strings.
5. Gotchas
-
Do not edit this file directly — The auto-generated header explicitly warns that changes will be lost if the code is regenerated. To add or modify strings, edit the
.resxfile and regenerate. -
File is truncated in the provided source — The source cuts off mid-property (
OutputClockSource_PTP_OnePPS). The full file contains additional string properties not documented here. -
Culture can be overridden globally — Setting
Strings.Cultureaffects all subsequent resource lookups through this class. Callers should be aware this is a global setting. -
Formatted strings require caller handling — Properties like
LevelTrigger_TriggerInsidecontain format placeholders ({0},{1},{2}). The caller is responsible for callingstring.Format()or similar. -
Typo in property name:
DigitialOutput(should beDigitalOutput) — this appears to be a historical naming quirk preserved for backward compatibility. -
Some strings contain newlines and formatting — e.g.,
DockingStationNotFoundcontains multi-line instructions with bullet points. Callers displaying these should preserve formatting.