Fixed the error that Files were named Folder (#6935)

* Fixed the error that Files were named Folder

* Add and use resources in Results.

* Last item without resources in Plugin.Folder

* Changed to CurrentCulture, added N0 to Folder truncate warning.

Co-authored-by: p-storm <paul.de.man@gmail.com>
This commit is contained in:
P-Storm
2020-10-06 18:08:41 +02:00
committed by GitHub
parent ac3910580a
commit 206397dc86
7 changed files with 36 additions and 8 deletions

View File

@@ -106,7 +106,7 @@ namespace Microsoft.Plugin.Folder.Properties {
}
/// <summary>
/// Looks up a localized string similar to Showing {0} of {1} results.
/// Looks up a localized string similar to Showing {0:N0} of {1:N0} results.
/// </summary>
public static string Microsoft_plugin_folder_truncation_warning_subtitle {
get {
@@ -141,6 +141,15 @@ namespace Microsoft.Plugin.Folder.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to File: {0}.
/// </summary>
public static string wox_plugin_folder_select_file_result_subtitle {
get {
return ResourceManager.GetString("wox_plugin_folder_select_file_result_subtitle", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Use &gt; to search within the directory. Use * to search for file extensions. Or use both &gt;*.
/// </summary>
@@ -167,5 +176,14 @@ namespace Microsoft.Plugin.Folder.Properties {
return ResourceManager.GetString("wox_plugin_folder_select_folder_OpenFileOrFolder_error_message", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Folder: {0}.
/// </summary>
public static string wox_plugin_folder_select_folder_result_subtitle {
get {
return ResourceManager.GetString("wox_plugin_folder_select_folder_result_subtitle", resourceCulture);
}
}
}
}

View File

@@ -136,7 +136,7 @@
<value>Warning: Folder Plugin Results truncated.</value>
</data>
<data name="Microsoft_plugin_folder_truncation_warning_subtitle" xml:space="preserve">
<value>Showing {0} of {1} results</value>
<value>Showing {0:N0} of {1:N0} results</value>
</data>
<data name="Microsoft_plugin_folder_clipboard_failed" xml:space="preserve">
<value>Fail to set text in clipboard</value>
@@ -153,4 +153,10 @@
<data name="wox_plugin_folder_select_folder_OpenFileOrFolder_error_message" xml:space="preserve">
<value>Could not start</value>
</data>
<data name="wox_plugin_folder_select_file_result_subtitle" xml:space="preserve">
<value>File: {0}</value>
</data>
<data name="wox_plugin_folder_select_folder_result_subtitle" xml:space="preserve">
<value>Folder: {0}</value>
</data>
</root>