Skip to content

Commit

Permalink
Use localized string in file selector filter
Browse files Browse the repository at this point in the history
  • Loading branch information
EchterAgo committed Nov 8, 2018
1 parent dce6602 commit b00fa8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Gemini/Framework/Document.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b00fa8c

Please sign in to comment.