mirror of
https://github.com/greenshot/greenshot.git
synced 2025-01-10 15:52:48 -08:00
31 lines
596 B
C#
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
|
|
}
|
|
}
|