25 lines
591 B
C#
25 lines
591 B
C#
using System.Collections.Generic;
|
|
|
|
namespace NWService
|
|
{
|
|
public class LanguageXml
|
|
{
|
|
public LanguageXml()
|
|
{
|
|
this.messageMaps = new Dictionary<string, string>();
|
|
}
|
|
|
|
public Dictionary<string, string> messageMaps = new Dictionary<string, string>();
|
|
public string GetMessage(string key, string defaultMessage)
|
|
{
|
|
if (messageMaps.ContainsKey(key))
|
|
{
|
|
return messageMaps[key];
|
|
}
|
|
else
|
|
{
|
|
return defaultMessage;
|
|
}
|
|
}
|
|
}
|
|
} |