diff --git a/Terminal.Gui/Resources/Strings.Designer.cs b/Terminal.Gui/Resources/Strings.Designer.cs index 591ccdb1e..4efc0cc49 100644 --- a/Terminal.Gui/Resources/Strings.Designer.cs +++ b/Terminal.Gui/Resources/Strings.Designer.cs @@ -123,6 +123,15 @@ namespace Terminal.Gui.Resources { } } + /// + /// Looks up a localized string similar to Any Files. + /// + internal static string fdAnyFiles { + get { + return ResourceManager.GetString("fdAnyFiles", resourceCulture); + } + } + /// /// Looks up a localized string similar to Directory. /// diff --git a/Terminal.Gui/Resources/Strings.resx b/Terminal.Gui/Resources/Strings.resx index 6ea1e16d9..a79e2fc50 100644 --- a/Terminal.Gui/Resources/Strings.resx +++ b/Terminal.Gui/Resources/Strings.resx @@ -207,4 +207,8 @@ Wrong file type When trying to open/save a file that does not match the provided filter (e.g. csv) + + Any Files + Describes an AllowedType that matches anything + \ No newline at end of file diff --git a/Terminal.Gui/Windows/AllowedType.cs b/Terminal.Gui/Windows/AllowedType.cs index e91f0d4fe..12eff9f78 100644 --- a/Terminal.Gui/Windows/AllowedType.cs +++ b/Terminal.Gui/Windows/AllowedType.cs @@ -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 { /// /// Gets a value of that matches any file. /// - public static AllowedType Any { get; } = new AllowedType ("Any Files", ".*"); + public static AllowedType Any { get; } = new AllowedType (Strings.fdAnyFiles, ".*"); /// /// Gets or Sets the human readable description for the file type