aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/taxonomy.c14
-rw-r--r--qt-models/divelocationmodel.cpp3
2 files changed, 9 insertions, 8 deletions
diff --git a/core/taxonomy.c b/core/taxonomy.c
index 670d85ad0..65de11331 100644
--- a/core/taxonomy.c
+++ b/core/taxonomy.c
@@ -3,13 +3,13 @@
#include <stdlib.h>
char *taxonomy_category_names[TC_NR_CATEGORIES] = {
- QT_TRANSLATE_NOOP("getTextFromC", "None"),
- QT_TRANSLATE_NOOP("getTextFromC", "Ocean"),
- QT_TRANSLATE_NOOP("getTextFromC", "Country"),
- QT_TRANSLATE_NOOP("getTextFromC", "State"),
- QT_TRANSLATE_NOOP("getTextFromC", "County"),
- QT_TRANSLATE_NOOP("getTextFromC", "Town"),
- QT_TRANSLATE_NOOP("getTextFromC", "City")
+ QT_TRANSLATE_NOOP("gettextFromC", "None"),
+ QT_TRANSLATE_NOOP("gettextFromC", "Ocean"),
+ QT_TRANSLATE_NOOP("gettextFromC", "Country"),
+ QT_TRANSLATE_NOOP("gettextFromC", "State"),
+ QT_TRANSLATE_NOOP("gettextFromC", "County"),
+ QT_TRANSLATE_NOOP("gettextFromC", "Town"),
+ QT_TRANSLATE_NOOP("gettextFromC", "City")
};
// these are the names for geoname.org
diff --git a/qt-models/divelocationmodel.cpp b/qt-models/divelocationmodel.cpp
index 877ca0552..1d9cda558 100644
--- a/qt-models/divelocationmodel.cpp
+++ b/qt-models/divelocationmodel.cpp
@@ -4,6 +4,7 @@
#include <QDebug>
#include <QLineEdit>
#include <QIcon>
+#include <core/gettextfromc.h>
bool dive_site_less_than(dive_site *a, dive_site *b)
{
@@ -184,7 +185,7 @@ GeoReferencingOptionsModel::GeoReferencingOptionsModel(QObject *parent) : QStrin
QStringList list;
int i;
for (i = 0; i < TC_NR_CATEGORIES; i++)
- list << taxonomy_category_names[i];
+ list << gettextFromC::instance()->trGettext(taxonomy_category_names[i]);
setStringList(list);
}