From 174e8f45dfd90f27812f4e6093d3a7703ba82a09 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 8 Dec 2007 20:49:21 +0000 Subject: [PATCH] translate wx{File,Dir}PickerWidgetLabel git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/filepicker.h | 5 +++-- src/common/filepickercmn.cpp | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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)