diff options
Diffstat (limited to 'src/live_effects/effect-enum.h')
| -rw-r--r-- | src/live_effects/effect-enum.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/live_effects/effect-enum.h b/src/live_effects/effect-enum.h index 6a50cffce..c82471439 100644 --- a/src/live_effects/effect-enum.h +++ b/src/live_effects/effect-enum.h @@ -81,6 +81,7 @@ struct EnumEffectData { const Glib::ustring label; const Glib::ustring key; const Glib::ustring icon; + const Glib::ustring untranslated_label; const Glib::ustring description; const bool on_path; const bool on_shape; @@ -178,6 +179,16 @@ class EnumEffectDataConverter { return empty_string; } + const Glib::ustring &get_untranslated_label(const E id) const + { + for (unsigned int i = 0; i < _length; ++i) { + if (_data[i].id == id) + return _data[i].untranslated_label; + } + + return empty_string; + } + const Glib::ustring &get_description(const E id) const { for (unsigned int i = 0; i < _length; ++i) { |
