Skip to content

Commit b00fa8c

Browse files
committed
Use localized string in file selector filter
1 parent dce6602 commit b00fa8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Gemini/Framework/Document.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private static async Task DoSaveAs(IPersistedDocument persistedDocument)
138138
if (fileType != null)
139139
filter = fileType.Name + "|*" + fileType.FileExtension + "|";
140140

141-
filter += "All Files|*.*";
141+
filter += Properties.Resources.AllFiles + "|*.*";
142142
dialog.Filter = filter;
143143

144144
if (dialog.ShowDialog() != true)

src/Gemini/Modules/Shell/Commands/OpenFileCommandHandler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public override async Task Run(Command command)
2727
{
2828
var dialog = new OpenFileDialog();
2929

30-
dialog.Filter = "All Supported Files|" + string.Join(";", _editorProviders
30+
dialog.Filter = Properties.Resources.AllSupportedFiles + "|" + string.Join(";", _editorProviders
3131
.SelectMany(x => x.FileTypes).Select(x => "*" + x.FileExtension));
3232

3333
dialog.Filter += "|" + string.Join("|", _editorProviders

0 commit comments

Comments
 (0)