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
|
@ -24,6 +24,7 @@
|
|||
#include "qt-models/filtermodels.h"
|
||||
#include "core/divesite.h"
|
||||
#include "core/subsurface-string.h"
|
||||
#include "core/gettextfromc.h"
|
||||
#include "desktop-widgets/locationinformation.h"
|
||||
|
||||
#include "TabDiveExtraInfo.h"
|
||||
|
@ -111,7 +112,7 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
|
|||
// This needs to be the same order as enum dive_comp_type in dive.h!
|
||||
QStringList types = QStringList();
|
||||
for (int i = 0; i < NUM_DIVEMODE; i++)
|
||||
types.append(QString(tr(divemode_text_ui[i])));
|
||||
types.append(gettextFromC::instance()->tr(divemode_text_ui[i]));
|
||||
ui.DiveType->insertItems(0, types);
|
||||
connect(ui.DiveType, SIGNAL(currentIndexChanged(int)), this, SLOT(divetype_Changed(int)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue