From 12a59ef3137c84ae693227942fd40ee4dbdc8e88 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Tue, 25 Apr 2017 23:16:46 +0200 Subject: Correct divesite geocoding translation See https://github.com/Subsurface-divelog/subsurface/issues/345. The menues where not translated. The basis of this error is a simple typo in core/taxonomy.c where the classname was mis-spelled in the QT_TRANSLATE_NOOP. In addition, to pull and translate the strings from C code, the normal tr() does not work, and the functionality from the gettextfromc class is used. Fixes: #345 Signed-off-by: Jan Mulder --- qt-models/divelocationmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qt-models') 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 #include #include +#include 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); } -- cgit v1.2.3-70-g09d2