SystemTrayMenu/Utilities/Translate.cs
Peter Kirmeier 02ba400399 Baseline for version 2.x
Forms replaced with WPF
Migration not complete, yet
Known open points marked with TODOs
Limited and non-optimized feature set
2022-10-23 00:14:31 +02:00

26 lines
633 B
C#

// <copyright file="Translate.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
//
// Copyright (c) 2022-2022 Peter Kirmeier
#nullable enable
namespace SystemTrayMenu.Utilities
{
using System;
using System.Windows.Markup;
public class Translate : MarkupExtension
{
private readonly string original;
public Translate(string original)
{
this.original = original;
}
public override object ProvideValue(IServiceProvider serviceProvider) => Translator.GetText(original);
}
}