localization

This commit is contained in:
tznind
2023-03-17 23:21:58 +00:00
parent 5b9805ea9e
commit c532b49b5d
3 changed files with 15 additions and 1 deletions

View File

@@ -123,6 +123,15 @@ namespace Terminal.Gui.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Any Files.
/// </summary>
internal static string fdAnyFiles {
get {
return ResourceManager.GetString("fdAnyFiles", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Directory.
/// </summary>

View File

@@ -207,4 +207,8 @@
<value>Wrong file type</value>
<comment>When trying to open/save a file that does not match the provided filter (e.g. csv)</comment>
</data>
<data name="fdAnyFiles" xml:space="preserve">
<value>Any Files</value>
<comment>Describes an AllowedType that matches anything</comment>
</data>
</root>

View File

@@ -2,6 +2,7 @@
using System.Data;
using System.IO;
using System.Linq;
using Terminal.Gui.Resources;
namespace Terminal.Gui {
@@ -29,7 +30,7 @@ namespace Terminal.Gui {
/// <summary>
/// Gets a value of <see cref="AllowedType"/> that matches any file.
/// </summary>
public static AllowedType Any { get; } = new AllowedType ("Any Files", ".*");
public static AllowedType Any { get; } = new AllowedType (Strings.fdAnyFiles, ".*");
/// <summary>
/// Gets or Sets the human readable description for the file type