PowerToys/Wox.Core/Resource/InternationalizationManager.cs

26 lines
680 B
C#
Raw Normal View History

namespace Wox.Core.Resource
2015-01-02 16:16:09 +08:00
{
public static class InternationalizationManager
2015-01-02 16:16:09 +08:00
{
private static Internationalization instance;
2015-01-02 23:07:49 +08:00
private static object syncObject = new object();
2015-01-02 16:16:09 +08:00
2015-01-21 23:00:56 +08:00
public static Internationalization Instance
2015-01-02 23:07:49 +08:00
{
get
{
if (instance == null)
{
lock (syncObject)
{
if (instance == null)
{
instance = new Internationalization();
2015-01-02 23:07:49 +08:00
}
}
}
return instance;
}
}
2015-01-02 16:16:09 +08:00
}
}