Browse Source

Don't translate wxFileDialog "All Files" filter.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20297
revert-0c36e162
Alex Shvartzkop 7 months ago
parent
commit
c4655da4e6
  1. 2
      common/dialogs/panel_embedded_files.cpp
  2. 5
      common/widgets/grid_text_button_helpers.cpp

2
common/dialogs/panel_embedded_files.cpp

@ -318,7 +318,7 @@ void PANEL_EMBEDDED_FILES::onAddEmbeddedFiles( wxCommandEvent& event )
{
// TODO: Update strings to reflect that multiple files can be selected.
wxFileDialog fileDialog( this, _( "Select a file to embed" ), wxEmptyString, wxEmptyString,
_( "All files|*.*" ),
_( "All Files" ) + wxT( " (*.*)|*.*" ),
wxFD_OPEN | wxFD_FILE_MUST_EXIST | wxFD_MULTIPLE );
if( fileDialog.ShowModal() == wxID_OK )

5
common/widgets/grid_text_button_helpers.cpp

@ -367,8 +367,11 @@ protected:
if( filename.IsEmpty() || filename == wxT( "~" ) )
{
FILEDLG_OPEN_EMBED_FILE customize;
wxFileDialog openFileDialog( this, _( "Open file" ), "", "", "All files (*.*)|*.*",
wxFileDialog openFileDialog( this, _( "Open file" ), "", "",
_( "All Files" ) + wxT( " (*.*)|*.*" ),
wxFD_OPEN | wxFD_FILE_MUST_EXIST );
openFileDialog.SetCustomizeHook( customize );
if( openFileDialog.ShowModal() == wxID_OK )

Loading…
Cancel
Save