2015-01-02 16:16:09 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using System.Windows;
|
2015-01-02 23:07:49 +08:00
|
|
|
|
using Wox.Core.UI;
|
2015-01-02 16:16:09 +08:00
|
|
|
|
using Wox.Infrastructure.Logger;
|
|
|
|
|
using Wox.Infrastructure.Storage.UserSettings;
|
|
|
|
|
|
2015-01-02 23:07:49 +08:00
|
|
|
|
namespace Wox.Core.i18n
|
2015-01-02 16:16:09 +08:00
|
|
|
|
{
|
2015-01-03 15:20:34 +08:00
|
|
|
|
public static class InternationalizationManager
|
2015-01-02 16:16:09 +08:00
|
|
|
|
{
|
2015-01-03 15:20:34 +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-03 15:20:34 +08:00
|
|
|
|
public static Internationalization Internationalization
|
2015-01-02 23:07:49 +08:00
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (instance == null)
|
|
|
|
|
{
|
|
|
|
|
lock (syncObject)
|
|
|
|
|
{
|
|
|
|
|
if (instance == null)
|
|
|
|
|
{
|
2015-01-03 15:20:34 +08:00
|
|
|
|
instance = new Internationalization();
|
2015-01-02 23:07:49 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return instance;
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-01-02 16:16:09 +08:00
|
|
|
|
}
|
|
|
|
|
}
|