mirror of https://github.com/Wox-launcher/Wox
feat(wpm): update plugin group names for better clarity
* Changed group names for plugins in `createCommand` method. * Added translations for "Regular Plugins" and "Script Plugins" in multiple languages.
This commit is contained in:
parent
21d8d83a1f
commit
f53df14bf8
|
@ -320,7 +320,7 @@ func (w *WPMPlugin) createCommand(ctx context.Context, query plugin.Query) []plu
|
|||
Title: fmt.Sprintf(i18n.GetI18nManager().TranslateWox(ctx, "plugin_wpm_create_plugin"), string(template.Runtime)),
|
||||
SubTitle: fmt.Sprintf(i18n.GetI18nManager().TranslateWox(ctx, "plugin_wpm_plugin_name"), query.Search),
|
||||
Icon: wpmIcon,
|
||||
Group: "Regular Plugins",
|
||||
Group: i18n.GetI18nManager().TranslateWox(ctx, "plugin_wpm_group_regular_plugins"),
|
||||
Actions: []plugin.QueryResultAction{
|
||||
{
|
||||
Name: "i18n:plugin_wpm_create",
|
||||
|
@ -406,7 +406,7 @@ func (w *WPMPlugin) createCommand(ctx context.Context, query plugin.Query) []plu
|
|||
Title: title,
|
||||
SubTitle: subtitle,
|
||||
Icon: wpmIcon,
|
||||
Group: "Script Plugins",
|
||||
Group: i18n.GetI18nManager().TranslateWox(ctx, "plugin_wpm_group_script_plugins"),
|
||||
Actions: actions,
|
||||
})
|
||||
}
|
||||
|
|
|
@ -269,6 +269,8 @@
|
|||
"plugin_wpm_command_create": "Create Wox plugin",
|
||||
"plugin_wpm_enter_plugin_name": "Please enter a plugin name",
|
||||
"plugin_wpm_enter_plugin_name_subtitle": "Type the name of the plugin you want to create",
|
||||
"plugin_wpm_group_regular_plugins": "Regular Plugins (full featured plugins)",
|
||||
"plugin_wpm_group_script_plugins": "Script Plugins (single-file script plugins)",
|
||||
"plugin_wpm_command_dev_list": "List local Wox plugins",
|
||||
"plugin_wpm_command_dev_add": "Add existing Wox plugin directory",
|
||||
"plugin_wpm_command_dev_remove": "Remove local Wox plugin, followed by a directory",
|
||||
|
|
|
@ -267,6 +267,8 @@
|
|||
"plugin_wpm_command_create": "Criar plugin do Wox",
|
||||
"plugin_wpm_enter_plugin_name": "Por favor, digite o nome do plugin",
|
||||
"plugin_wpm_enter_plugin_name_subtitle": "Digite o nome do plugin que você deseja criar",
|
||||
"plugin_wpm_group_regular_plugins": "Plugins Regulares (plugins com funcionalidade completa)",
|
||||
"plugin_wpm_group_script_plugins": "Plugins de Script (plugins de script de um único arquivo)",
|
||||
"plugin_wpm_command_dev_list": "Listar plugins locais do Wox",
|
||||
"plugin_wpm_command_dev_add": "Adicionar diretório de plugin existente do Wox",
|
||||
"plugin_wpm_command_dev_remove": "Remover plugin local do Wox, seguido de um diretório",
|
||||
|
|
|
@ -267,6 +267,8 @@
|
|||
"plugin_wpm_command_create": "Создать плагин Wox",
|
||||
"plugin_wpm_enter_plugin_name": "Пожалуйста, введите имя плагина",
|
||||
"plugin_wpm_enter_plugin_name_subtitle": "Введите имя плагина, который вы хотите создать",
|
||||
"plugin_wpm_group_regular_plugins": "Обычные плагины (плагины с полной функциональностью)",
|
||||
"plugin_wpm_group_script_plugins": "Скриптовые плагины (однофайловые скриптовые плагины)",
|
||||
"plugin_wpm_command_dev_list": "Список локальных плагинов Wox",
|
||||
"plugin_wpm_command_dev_add": "Добавить существующий каталог плагинов Wox",
|
||||
"plugin_wpm_command_dev_remove": "Удалить локальный плагин Wox, указав каталог",
|
||||
|
|
|
@ -269,6 +269,8 @@
|
|||
"plugin_wpm_command_create": "创建 Wox 插件",
|
||||
"plugin_wpm_enter_plugin_name": "请输入插件名称",
|
||||
"plugin_wpm_enter_plugin_name_subtitle": "输入您要创建的插件名称",
|
||||
"plugin_wpm_group_regular_plugins": "常规插件 (全功能插件)",
|
||||
"plugin_wpm_group_script_plugins": "脚本插件 (轻量单文件插件)",
|
||||
"plugin_wpm_command_dev_list": "列出本地 Wox 插件",
|
||||
"plugin_wpm_command_dev_add": "添加现有的 Wox 插件目录",
|
||||
"plugin_wpm_command_dev_remove": "移除本地 Wox 插件,后跟目录",
|
||||
|
|
Loading…
Reference in New Issue