diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-03-21 23:07:44 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-03-21 23:07:44 +0000 |
| commit | 674f59e307919856118d21aa03b53eb6fa82aeb0 (patch) | |
| tree | 2baaef6d55fb3b8c55fa2715ab5263f65e1e5043 /src/wx/i18n_hook.h | |
| parent | da9fd55339dab2605d14579a0f79588db27c232a (diff) | |
Fix instant-translation when things are changed more than once.
Diffstat (limited to 'src/wx/i18n_hook.h')
| -rw-r--r-- | src/wx/i18n_hook.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wx/i18n_hook.h b/src/wx/i18n_hook.h index 106d9d8c4..40fd89a2c 100644 --- a/src/wx/i18n_hook.h +++ b/src/wx/i18n_hook.h @@ -1,5 +1,5 @@ /* - 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. @@ -27,7 +27,7 @@ class I18NHook { public: - I18NHook (wxWindow* window); + I18NHook (wxWindow* window, wxString original); virtual void set_text (wxString text) = 0; virtual wxString get_text () const = 0; @@ -40,6 +40,7 @@ private: void handle (wxMouseEvent &); wxWindow* _window; + wxString _original; static std::map<std::string, std::string> _translations; }; |
