Add title translations

This commit is contained in:
qianlifeng
2015-02-07 21:27:48 +08:00
parent 437c1a154c
commit 2d05ecc81f
29 changed files with 759 additions and 390 deletions

View File

@@ -3,11 +3,12 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using Wox.Infrastructure;
namespace Wox.Plugin.ControlPanel
{
public class ControlPanel : IPlugin
public class ControlPanel : IPlugin,IPluginI18n
{
private PluginInitContext context;
private List<ControlPanelItem> controlPanelItems = new List<ControlPanelItem>();
@@ -81,5 +82,20 @@ namespace Wox.Plugin.ControlPanel
return false;
}
public string GetLanguagesFolder()
{
return Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Languages");
}
public string GetTranslatedPluginTitle()
{
return context.API.GetTranslation("wox_plugin_controlpanel_plugin_name");
}
public string GetTranslatedPluginDescription()
{
return context.API.GetTranslation("wox_plugin_controlpanel_plugin_description");
}
}
}