diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2018-06-16 16:24:16 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-06-17 06:36:20 +0900 |
commit | 4ccc4d73290309908898387fe0d24503606336ad (patch) | |
tree | 4061437a84e6d586e6e318a308afa2fe8db1a8bf /profile-widget | |
parent | 632e6bb7c71185f125b19a718f3ec322f4ca9d4d (diff) | |
download | subsurface-4ccc4d73290309908898387fe0d24503606336ad.tar.gz |
Enable translation for even name "modechange"
Enable translations for dive event name "modechange".
But clearly don't do this for the string which is used internally
but only push "modechange" to the translation system to be able to
translate it in the UI.
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'profile-widget')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index e7b7c1460..142514a2d 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -1623,7 +1623,8 @@ void ProfileWidget2::addDivemodeSwitch() QPointF scenePos = mapToScene(mapFromGlobal(action->data().toPoint())); for (i = 0; i < UNDEF_COMP_TYPE; i++) if (QString(divemode_text_ui[i]) == action->text()) - add_event(current_dc, lrint(timeAxis->valueAt(scenePos)), 8, 0, i, "modechange"); + add_event(current_dc, lrint(timeAxis->valueAt(scenePos)), 8, 0, i, + QT_TRANSLATE_NOOP("gettextFromC", "modechange")); invalidate_dive_cache(current_dive); mark_divelist_changed(true); replot(); |