From 052d20e47ac8985f88d0a1abaeee566e444235fe Mon Sep 17 00:00:00 2001 From: Axel Gembe Date: Wed, 7 Nov 2018 14:58:52 +0700 Subject: [PATCH] Use localized string in file selector filter --- src/Gemini/Framework/Document.cs | 2 +- src/Gemini/Modules/Shell/Commands/OpenFileCommandHandler.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gemini/Framework/Document.cs b/src/Gemini/Framework/Document.cs index 16217cde..516ae616 100644 --- a/src/Gemini/Framework/Document.cs +++ b/src/Gemini/Framework/Document.cs @@ -138,7 +138,7 @@ private static async Task DoSaveAs(IPersistedDocument persistedDocument) if (fileType != null) filter = fileType.Name + "|*" + fileType.FileExtension + "|"; - filter += "All Files|*.*"; + filter += Properties.Resources.AllFiles + "|*.*"; dialog.Filter = filter; if (dialog.ShowDialog() != true) diff --git a/src/Gemini/Modules/Shell/Commands/OpenFileCommandHandler.cs b/src/Gemini/Modules/Shell/Commands/OpenFileCommandHandler.cs index 3e35da78..7444345f 100644 --- a/src/Gemini/Modules/Shell/Commands/OpenFileCommandHandler.cs +++ b/src/Gemini/Modules/Shell/Commands/OpenFileCommandHandler.cs @@ -27,7 +27,7 @@ public override async Task Run(Command command) { var dialog = new OpenFileDialog(); - dialog.Filter = "All Supported Files|" + string.Join(";", _editorProviders + dialog.Filter = Properties.Resources.AllSupportedFiles + "|" + string.Join(";", _editorProviders .SelectMany(x => x.FileTypes).Select(x => "*" + x.FileExtension)); dialog.Filter += "|" + string.Join("|", _editorProviders