greenshot/GreenshotConfluencePlugin/Support/LanguageXMLTranslationProvider.cs
2016-09-22 20:40:13 +02:00

31 lines
596 B
C#

using GreenshotPlugin.Core;
namespace TranslationByMarkupExtension {
/// <summary>
///
/// </summary>
public class LanguageXMLTranslationProvider : ITranslationProvider {
#region Private Members
#endregion
#region Construction
#endregion
#region ITranslationProvider Members
/// <summary>
/// See <see cref="ITranslationProvider.Translate" />
/// </summary>
public object Translate(string key) {
if (Language.HasKey("confluence", key)) {
return Language.GetString("confluence", key);
}
return key;
}
#endregion
}
}