This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,549 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace SensorSettingsModule.Resources {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class StringResources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal StringResources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SensorSettingsModule.Resources.StringResources", typeof(StringResources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to 24V Power high (V).
/// </summary>
internal static string _24VPowerHigh {
get {
return ResourceManager.GetString("_24VPowerHigh", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 24V Power low (V).
/// </summary>
internal static string _24VPowerLow {
get {
return ResourceManager.GetString("_24VPowerLow", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Analog defaults.
/// </summary>
internal static string AnalogSettings {
get {
return ResourceManager.GetString("AnalogSettings", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Arb/Base Bitrate.
/// </summary>
internal static string ArbBaseBitrate {
get {
return ResourceManager.GetString("ArbBaseBitrate", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Baud rate.
/// </summary>
internal static string BaudRate {
get {
return ResourceManager.GetString("BaudRate", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to CAN defaults.
/// </summary>
internal static string CanSettings {
get {
return ResourceManager.GetString("CanSettings", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Constant current breakpoint (ADC).
/// </summary>
internal static string ConstantCurrentBreakPoint {
get {
return ResourceManager.GetString("ConstantCurrentBreakPoint", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Current (A).
/// </summary>
internal static string Current {
get {
return ResourceManager.GetString("Current", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Data bits.
/// </summary>
internal static string DataBits {
get {
return ResourceManager.GetString("DataBits", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Data channel id.
/// </summary>
internal static string DataChannelId {
get {
return ResourceManager.GetString("DataChannelId", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Data format.
/// </summary>
internal static string DataFormat {
get {
return ResourceManager.GetString("DataFormat", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Define Default Filter.
/// </summary>
internal static string DefineDefaultFilter {
get {
return ResourceManager.GetString("DefineDefaultFilter", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Delay (ms).
/// </summary>
internal static string Delay {
get {
return ResourceManager.GetString("Delay", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Digital input defaults.
/// </summary>
internal static string DigitalInputSettings {
get {
return ResourceManager.GetString("DigitalInputSettings", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Digital output defaults.
/// </summary>
internal static string DigitalOutDefaults {
get {
return ResourceManager.GetString("DigitalOutDefaults", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Delay (ms).
/// </summary>
internal static string DigitalOutputDelayMS {
get {
return ResourceManager.GetString("DigitalOutputDelayMS", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Duration (ms).
/// </summary>
internal static string DigitalOutputDuration {
get {
return ResourceManager.GetString("DigitalOutputDuration", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Limit duration.
/// </summary>
internal static string DigitalOutputLimitDuration {
get {
return ResourceManager.GetString("DigitalOutputLimitDuration", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Output mode.
/// </summary>
internal static string DigitalOutputMode {
get {
return ResourceManager.GetString("DigitalOutputMode", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Disable auto-sense.
/// </summary>
internal static string DisableAutoSense {
get {
return ResourceManager.GetString("DisableAutoSense", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Display SPD analog data.
/// </summary>
internal static string DisplaySPDADC {
get {
return ResourceManager.GetString("DisplaySPDADC", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Duration (ms).
/// </summary>
internal static string Duration {
get {
return ResourceManager.GetString("Duration", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Firing mode.
/// </summary>
internal static string FiringMode {
get {
return ResourceManager.GetString("FiringMode", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Flow control.
/// </summary>
internal static string FlowControl {
get {
return ResourceManager.GetString("FlowControl", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to High tolerance (Ω).
/// </summary>
internal static string HighTolerance {
get {
return ResourceManager.GetString("HighTolerance", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to IEPE defaults.
/// </summary>
internal static string IEPEDefaults {
get {
return ResourceManager.GetString("IEPEDefaults", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Actual range high limit (x full scale).
/// </summary>
internal static string IEPERangeHighLimit {
get {
return ResourceManager.GetString("IEPERangeHighLimit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Actual range low limit (x full scale).
/// </summary>
internal static string IEPERangeLowLimit {
get {
return ResourceManager.GetString("IEPERangeLowLimit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Time packet interval (ms).
/// </summary>
internal static string IRIGTimeDataPacketIntervalMs {
get {
return ResourceManager.GetString("IRIGTimeDataPacketIntervalMs", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Limit duration.
/// </summary>
internal static string LimitDuration {
get {
return ResourceManager.GetString("LimitDuration", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Low tolerance (Ω).
/// </summary>
internal static string LowTolerance {
get {
return ResourceManager.GetString("LowTolerance", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Output mode.
/// </summary>
internal static string OutputMode {
get {
return ResourceManager.GetString("OutputMode", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Parity.
/// </summary>
internal static string Parity {
get {
return ResourceManager.GetString("Parity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Policy.
/// </summary>
internal static string Policy {
get {
return ResourceManager.GetString("Policy", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Sensor calibration policies.
/// </summary>
internal static string SensorCalibrationPolicies {
get {
return ResourceManager.GetString("SensorCalibrationPolicies", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Inspect before use.
/// </summary>
internal static string SensorSettings_AllowInspectBeforeUse {
get {
return ResourceManager.GetString("SensorSettings_AllowInspectBeforeUse", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Default maximum uses allowed.
/// </summary>
internal static string SensorSettings_DefaultMaxUsageAllowed {
get {
return ResourceManager.GetString("SensorSettings_DefaultMaxUsageAllowed", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Do not allow data collection if sensor is overused.
/// </summary>
internal static string SensorSettings_DontAllowDataCollectionIfOverused {
get {
return ResourceManager.GetString("SensorSettings_DontAllowDataCollectionIfOverused", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Warn when number of uses remaining.
/// </summary>
internal static string SensorSettings_UsageRemainingForWarning {
get {
return ResourceManager.GetString("SensorSettings_UsageRemainingForWarning", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Squib defaults.
/// </summary>
internal static string SquibDefaults {
get {
return ResourceManager.GetString("SquibDefaults", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Stop bits.
/// </summary>
internal static string StopBits {
get {
return ResourceManager.GetString("StopBits", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Stream input defaults.
/// </summary>
internal static string StreamInputSettings {
get {
return ResourceManager.GetString("StreamInputSettings", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Stream output defaults.
/// </summary>
internal static string StreamOutputSettings {
get {
return ResourceManager.GetString("StreamOutputSettings", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Time channel id.
/// </summary>
internal static string TimeChannelId {
get {
return ResourceManager.GetString("TimeChannelId", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to TmNS config.
/// </summary>
internal static string TmNSConfig {
get {
return ResourceManager.GetString("TmNSConfig", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Track diagnostics.
/// </summary>
internal static string TrackDiagnostics {
get {
return ResourceManager.GetString("TrackDiagnostics", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to UART defaults.
/// </summary>
internal static string UartSettings {
get {
return ResourceManager.GetString("UartSettings", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to UDP Address.
/// </summary>
internal static string UDPAddress {
get {
return ResourceManager.GetString("UDPAddress", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Stream Profile.
/// </summary>
internal static string UDPProfile {
get {
return ResourceManager.GetString("UDPProfile", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Use advanced streaming profiles.
/// </summary>
internal static string UseAdvancedUDPStreamProfiles {
get {
return ResourceManager.GetString("UseAdvancedUDPStreamProfiles", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Use Measured Excitation to scale EU data.
/// </summary>
internal static string UseMeasuredExcitation {
get {
return ResourceManager.GetString("UseMeasuredExcitation", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Calibration interval starts after sensor&apos;s first use.
/// </summary>
internal static string UseSensorFirstUseDate {
get {
return ResourceManager.GetString("UseSensorFirstUseDate", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Voltage input breakpoint (ADC).
/// </summary>
internal static string VoltageInputBreakpoint {
get {
return ResourceManager.GetString("VoltageInputBreakpoint", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Warning period (days).
/// </summary>
internal static string WarningPeriod {
get {
return ResourceManager.GetString("WarningPeriod", resourceCulture);
}
}
}
}

View File

@@ -0,0 +1,282 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ConstantCurrentBreakPoint" xml:space="preserve">
<value>Constant current breakpoint (ADC)</value>
</data>
<data name="Current" xml:space="preserve">
<value>Current (A)</value>
</data>
<data name="Delay" xml:space="preserve">
<value>Delay (ms)</value>
</data>
<data name="DigitalInputSettings" xml:space="preserve">
<value>Digital input defaults</value>
</data>
<data name="DigitalOutDefaults" xml:space="preserve">
<value>Digital output defaults</value>
</data>
<data name="DigitalOutputDelayMS" xml:space="preserve">
<value>Delay (ms)</value>
</data>
<data name="DigitalOutputDuration" xml:space="preserve">
<value>Duration (ms)</value>
</data>
<data name="DigitalOutputLimitDuration" xml:space="preserve">
<value>Limit duration</value>
</data>
<data name="DigitalOutputMode" xml:space="preserve">
<value>Output mode</value>
</data>
<data name="DisplaySPDADC" xml:space="preserve">
<value>Display SPD analog data</value>
</data>
<data name="DisableAutoSense" xml:space="preserve">
<value>Disable auto-sense</value>
</data>
<data name="Duration" xml:space="preserve">
<value>Duration (ms)</value>
</data>
<data name="FiringMode" xml:space="preserve">
<value>Firing mode</value>
</data>
<data name="HighTolerance" xml:space="preserve">
<value>High tolerance (Ω)</value>
</data>
<data name="IEPEDefaults" xml:space="preserve">
<value>IEPE defaults</value>
</data>
<data name="IEPERangeHighLimit" xml:space="preserve">
<value>Actual range high limit (x full scale)</value>
</data>
<data name="IEPERangeLowLimit" xml:space="preserve">
<value>Actual range low limit (x full scale)</value>
</data>
<data name="LimitDuration" xml:space="preserve">
<value>Limit duration</value>
</data>
<data name="LowTolerance" xml:space="preserve">
<value>Low tolerance (Ω)</value>
</data>
<data name="OutputMode" xml:space="preserve">
<value>Output mode</value>
</data>
<data name="Policy" xml:space="preserve">
<value>Policy</value>
</data>
<data name="SensorCalibrationPolicies" xml:space="preserve">
<value>Sensor calibration policies</value>
</data>
<data name="AnalogSettings" xml:space="preserve">
<value>Analog defaults</value>
</data>
<data name="DefineDefaultFilter" xml:space="preserve">
<value>Define Default Filter</value>
</data>
<data name="UseMeasuredExcitation" xml:space="preserve">
<value>Use Measured Excitation to scale EU data</value>
</data>
<data name="SquibDefaults" xml:space="preserve">
<value>Squib defaults</value>
</data>
<data name="VoltageInputBreakpoint" xml:space="preserve">
<value>Voltage input breakpoint (ADC)</value>
</data>
<data name="WarningPeriod" xml:space="preserve">
<value>Warning period (days)</value>
</data>
<data name="_24VPowerHigh" xml:space="preserve">
<value>24V Power high (V)</value>
</data>
<data name="_24VPowerLow" xml:space="preserve">
<value>24V Power low (V)</value>
</data>
<data name="UseSensorFirstUseDate" xml:space="preserve">
<value>Calibration interval starts after sensor's first use</value>
</data>
<data name="BaudRate" xml:space="preserve">
<value>Baud rate</value>
</data>
<data name="DataBits" xml:space="preserve">
<value>Data bits</value>
</data>
<data name="DataFormat" xml:space="preserve">
<value>Data format</value>
</data>
<data name="FlowControl" xml:space="preserve">
<value>Flow control</value>
</data>
<data name="Parity" xml:space="preserve">
<value>Parity</value>
</data>
<data name="StopBits" xml:space="preserve">
<value>Stop bits</value>
</data>
<data name="UartSettings" xml:space="preserve">
<value>UART defaults</value>
</data>
<data name="DataChannelId" xml:space="preserve">
<value>Data channel id</value>
</data>
<data name="IRIGTimeDataPacketIntervalMs" xml:space="preserve">
<value>Time packet interval (ms)</value>
</data>
<data name="StreamOutputSettings" xml:space="preserve">
<value>Stream output defaults</value>
</data>
<data name="TimeChannelId" xml:space="preserve">
<value>Time channel id</value>
</data>
<data name="TmNSConfig" xml:space="preserve">
<value>TmNS config</value>
</data>
<data name="UDPAddress" xml:space="preserve">
<value>UDP Address</value>
</data>
<data name="UDPProfile" xml:space="preserve">
<value>Stream Profile</value>
</data>
<data name="StreamInputSettings" xml:space="preserve">
<value>Stream input defaults</value>
</data>
<data name="UseAdvancedUDPStreamProfiles" xml:space="preserve">
<value>Use advanced streaming profiles</value>
</data>
<data name="TrackDiagnostics" xml:space="preserve">
<value>Track diagnostics</value>
</data>
<data name="SensorSettings_AllowInspectBeforeUse" xml:space="preserve">
<value>Inspect before use</value>
</data>
<data name="SensorSettings_DefaultMaxUsageAllowed" xml:space="preserve">
<value>Default maximum uses allowed</value>
</data>
<data name="SensorSettings_DontAllowDataCollectionIfOverused" xml:space="preserve">
<value>Do not allow data collection if sensor is overused</value>
</data>
<data name="SensorSettings_UsageRemainingForWarning" xml:space="preserve">
<value>Warn when number of uses remaining</value>
</data>
<data name="ArbBaseBitrate" xml:space="preserve">
<value>Arb/Base Bitrate</value>
</data>
<data name="CanSettings" xml:space="preserve">
<value>CAN defaults</value>
</data>
</root>

View File

@@ -0,0 +1,21 @@
using System;
using System.Windows.Markup;
using SensorSettingsModule.Resources;
namespace SensorSettingsModule
{
[MarkupExtensionReturnType(typeof(string))]
public class TranslateExtension : MarkupExtension
{
private readonly string _key;
public TranslateExtension(string key) { _key = key; }
private const string NotFound = "#stringnotfound#";
public override object ProvideValue(IServiceProvider serviceProvider)
{
if (string.IsNullOrEmpty(_key)) { return NotFound; }
return StringResources.ResourceManager.GetString(_key) ?? NotFound + " " + _key;
}
}
}