/*
- Copyright (C) 2018 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2018-2019 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
#define DCPOMATIC_I18N_HOOK_H
#include <wx/wx.h>
+#include <map>
class I18NHook
{
public:
- I18NHook (wxWindow* window);
+ I18NHook (wxWindow* window, wxString original);
virtual void set_text (wxString text) = 0;
virtual wxString get_text () const = 0;
+ static std::map<std::string, std::string> translations () {
+ return _translations;
+ }
+
private:
void handle (wxMouseEvent &);
wxWindow* _window;
+ wxString _original;
+
+ static std::map<std::string, std::string> _translations;
};
#endif