diff --git a/include/wx/filepicker.h b/include/wx/filepicker.h index 8060a3f8dd..33667cd459 100644 --- a/include/wx/filepicker.h +++ b/include/wx/filepicker.h @@ -243,7 +243,7 @@ protected: const wxString& wildcard) { return new wxFilePickerWidget(parent, wxID_ANY, - wxFilePickerWidgetLabel, + wxGetTranslation(wxFilePickerWidgetLabel), path, message, wildcard, wxDefaultPosition, wxDefaultSize, GetPickerStyle(GetWindowStyle())); @@ -337,7 +337,8 @@ protected: const wxString& message, const wxString& WXUNUSED(wildcard)) { - return new wxDirPickerWidget(parent, wxID_ANY, wxDirPickerWidgetLabel, + return new wxDirPickerWidget(parent, wxID_ANY, + wxGetTranslation(wxDirPickerWidgetLabel), path, message, wxDefaultPosition, wxDefaultSize, GetPickerStyle(GetWindowStyle())); diff --git a/src/common/filepickercmn.cpp b/src/common/filepickercmn.cpp index bec014f6b4..4e4de6dc5d 100644 --- a/src/common/filepickercmn.cpp +++ b/src/common/filepickercmn.cpp @@ -41,8 +41,8 @@ const char wxFilePickerCtrlNameStr[] = "filepicker"; const char wxFilePickerWidgetNameStr[] = "filepickerwidget"; const char wxDirPickerCtrlNameStr[] = "dirpicker"; const char wxDirPickerWidgetNameStr[] = "dirpickerwidget"; -const char wxFilePickerWidgetLabel[] = "Browse"; -const char wxDirPickerWidgetLabel[] = "Browse"; +const char wxFilePickerWidgetLabel[] = wxTRANSLATE("Browse"); +const char wxDirPickerWidgetLabel[] = wxTRANSLATE("Browse"); DEFINE_EVENT_TYPE(wxEVT_COMMAND_FILEPICKER_CHANGED) DEFINE_EVENT_TYPE(wxEVT_COMMAND_DIRPICKER_CHANGED)