mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-06 12:42:02 +12:00
23 lines
613 B
C#
23 lines
613 B
C#
// <copyright file="Translate.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
//
|
|
// Copyright (c) 2022-2022 Peter Kirmeier
|
|
|
|
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);
|
|
}
|
|
}
|