mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use correct "tr" call for translating dive mode names
Correctly use gettextFromC::instance()->tr(); instead of a simple
tr(); to translate the dive mode names.
This goes on top of 0bc9edf855
and finally makes the whole thing work.
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
2466351a5f
commit
88e6ba2f61
6 changed files with 14 additions and 9 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "core/planner.h"
|
||||
#include "core/qthelper.h"
|
||||
#include "core/subsurface-qt/SettingsObjectWrapper.h"
|
||||
#include "core/gettextfromc.h"
|
||||
|
||||
#include "qt-models/cylindermodel.h"
|
||||
#include "qt-models/models.h"
|
||||
|
@ -448,7 +449,7 @@ PlannerSettingsWidget::PlannerSettingsWidget(QWidget *parent, Qt::WindowFlags f)
|
|||
|
||||
// should be the same order as in dive_comp_type!
|
||||
for (int i=0; i < FREEDIVE; i++)
|
||||
rebreather_modes.append(QString(tr(divemode_text_ui[i])));
|
||||
rebreather_modes.append(gettextFromC::instance()->tr(divemode_text_ui[i]));
|
||||
ui.rebreathermode->insertItems(0, rebreather_modes);
|
||||
|
||||
modeMapper = new QSignalMapper(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue