summaryrefslogtreecommitdiff
path: root/shared/dir_picker_i18n.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:11:09 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:11:09 +0200
commit9cc790869ed3905c78c7eeeb0bb44f800b3f2af4 (patch)
tree1c085bbf2302be294866c4fc6e0d225f8abbc346 /shared/dir_picker_i18n.h
parent3.14 (diff)
downloadFreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.tar.gz
FreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.tar.bz2
FreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.zip
3.15
Diffstat (limited to 'shared/dir_picker_i18n.h')
-rw-r--r--shared/dir_picker_i18n.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/shared/dir_picker_i18n.h b/shared/dir_picker_i18n.h
new file mode 100644
index 00000000..89b54bf4
--- /dev/null
+++ b/shared/dir_picker_i18n.h
@@ -0,0 +1,30 @@
+#ifndef DIR_PICKER_I18N_H_INCLUDED
+#define DIR_PICKER_I18N_H_INCLUDED
+
+#include <wx/filepicker.h>
+#include "i18n.h"
+
+
+class FfsDirPickerCtrl : public wxDirPickerCtrl
+{
+public:
+ FfsDirPickerCtrl(wxWindow* parent, wxWindowID id,
+ const wxString& path = wxEmptyString,
+ const wxString& message = wxDirSelectorPromptStr,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxDIRP_DEFAULT_STYLE,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxDirPickerCtrlNameStr) :
+ wxDirPickerCtrl(parent, id, path, message, pos, size, style, validator, name)
+ {
+#ifdef FFS_WIN
+ //fix wxWidgets localization gap:
+ wxButton* button = dynamic_cast<wxButton*>(m_pickerIface);
+ if (button) button->SetLabel(_("Browse"));
+#endif
+ }
+};
+
+
+#endif // DIR_PICKER_I18N_H_INCLUDED
bgstack15