Adjusted to be more translation friendly

moved version tag to be under debug option
This commit is contained in:
Lin Yu-Chieh (Victor) 2022-12-05 23:31:43 +08:00
parent a4a3c9c031
commit 41bcc13179
8 changed files with 37 additions and 15 deletions

View File

@ -147,8 +147,4 @@
<Exec Command="del /Q &quot;$(TargetDir)*.pdb&quot;&#xD;&#xA;del /Q &quot;$(TargetDir)PowerToys*.dll&quot;&#xD;&#xA;del /Q &quot;$(TargetDir)Wox*.dll&quot;&#xD;&#xA;del /Q &quot;$(TargetDir)Ijwhost.dll&quot;&#xD;&#xA;del /Q &quot;$(TargetDir)*.xml&quot;&#xD;&#xA;del/ Q &quot;$(TargetDir)backup_restore_settings.json&quot;" />
</Target>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="powershell -Command &quot;(Get-Content $(MSBuildThisFileDirectory)plugin.json) -replace '_.+_', '_$(Version)_' | Out-File -encoding UTF8 $(MSBuildThisFileDirectory)plugin.json&quot;" />
</Target>
</Project>

View File

@ -58,7 +58,7 @@ namespace Community.PowerToys.Run.Plugin.Everything
contextMenus.Add(new ContextMenuResult
{
PluginName = Assembly.GetExecutingAssembly().GetName().Name,
Title = _swapCopy ? Properties.Resources.copy_file : Properties.Resources.copy_file.Replace("Ctrl", "Ctrl+Alt"),
Title = Properties.Resources.copy_file + (_swapCopy ? Properties.Resources.copy_shortcut : Properties.Resources.copy_shortcutAlt),
Glyph = "\xE8C8",
FontFamily = "Segoe MDL2 Assets",
AcceleratorKey = Key.C,
@ -84,7 +84,7 @@ namespace Community.PowerToys.Run.Plugin.Everything
contextMenus.Add(new ContextMenuResult
{
PluginName = Assembly.GetExecutingAssembly().GetName().Name,
Title = _swapCopy ? Properties.Resources.copy_path.Replace("Ctrl", "Ctrl+Alt") : Properties.Resources.copy_path,
Title = Properties.Resources.copy_path + (_swapCopy ? Properties.Resources.copy_shortcutAlt : Properties.Resources.copy_shortcut),
Glyph = "\xE71B",
FontFamily = "Segoe MDL2 Assets",
AcceleratorKey = Key.C,

View File

@ -7,6 +7,7 @@ using System.Collections.Generic;
using System.Globalization;
using System.IO.Abstractions;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
@ -86,6 +87,7 @@ namespace Community.PowerToys.Run.Plugin.Everything
{
Key = Debug,
DisplayLabel = "Log debug data",
DisplayDescription = $"v{Assembly.GetExecutingAssembly().GetName().Version}",
Value = false,
},
};

View File

@ -70,7 +70,7 @@ namespace Community.PowerToys.Run.Plugin.Everything.Properties {
}
/// <summary>
/// Looks up a localized string similar to Copy (Ctrl+C).
/// Looks up a localized string similar to Copy .
/// </summary>
public static string copy_file {
get {
@ -79,7 +79,7 @@ namespace Community.PowerToys.Run.Plugin.Everything.Properties {
}
/// <summary>
/// Looks up a localized string similar to Copy path (Ctrl+C).
/// Looks up a localized string similar to Copy path .
/// </summary>
public static string copy_path {
get {
@ -87,6 +87,24 @@ namespace Community.PowerToys.Run.Plugin.Everything.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to (Ctrl+C).
/// </summary>
public static string copy_shortcut {
get {
return ResourceManager.GetString("copy_shortcut", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to (Ctrl+Alt+C).
/// </summary>
public static string copy_shortcutAlt {
get {
return ResourceManager.GetString("copy_shortcutAlt", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Install Everything if not installed.
/// </summary>

View File

@ -121,10 +121,16 @@
<value>Fail to set text in clipboard</value>
</data>
<data name="copy_file" xml:space="preserve">
<value>Copy (Ctrl+C)</value>
<value>Copy </value>
</data>
<data name="copy_path" xml:space="preserve">
<value>Copy path (Ctrl+C)</value>
<value>Copy path </value>
</data>
<data name="copy_shortcut" xml:space="preserve">
<value>(Ctrl+C)</value>
</data>
<data name="copy_shortcutAlt" xml:space="preserve">
<value>(Ctrl+Alt+C)</value>
</data>
<data name="Everything_ini" xml:space="preserve">
<value>Install Everything if not installed</value>

View File

@ -121,10 +121,10 @@
<value>无法设置剪贴板中的文本</value>
</data>
<data name="copy_file" xml:space="preserve">
<value>复制 (Ctrl+C)</value>
<value>复制</value>
</data>
<data name="copy_path" xml:space="preserve">
<value>复制路径 (Ctrl+C)</value>
<value>复制路径</value>
</data>
<data name="Everything_ini" xml:space="preserve">
<value>是否安装了 Everything?</value>

View File

@ -121,10 +121,10 @@
<value>複製到剪貼簿失敗</value>
</data>
<data name="copy_file" xml:space="preserve">
<value>複製 (Ctrl+C)</value>
<value>複製</value>
</data>
<data name="copy_path" xml:space="preserve">
<value>複製路徑 (Ctrl+C)</value>
<value>複製路徑</value>
</data>
<data name="Everything_ini" xml:space="preserve">
<value>是否有安裝 Everything?</value>

View File

@ -3,7 +3,7 @@
"ActionKeyword": "@",
"IsGlobal": true,
"Name": "Everything",
"Author": "Yu Chieh (Victor) Lin _0.65.0_",
"Author": "Yu Chieh (Victor) Lin",
"Version": "0.65.0",
"Language": "csharp",
"Website": "https://github.com/Lin-ycv/EverythingPowerToys",