summaryrefslogtreecommitdiffstats
path: root/core/qthelper.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-09-21 21:44:35 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-09-21 13:42:00 -0700
commit9d3b15bf9cb758e9f371d5f5f9eec0a3a2b0a4e2 (patch)
tree205328a2e44233bf21244dde08e28cc6a497b23c /core/qthelper.h
parent9ee85c0802ad2f54900e50c6cecf1ba99b7e120e (diff)
downloadsubsurface-9d3b15bf9cb758e9f371d5f5f9eec0a3a2b0a4e2.tar.gz
translations: initialize water type strings at run time
The water type strings were static and therefore passed through gettextFromC::tr() before main(). One would hope to get a warning in such a case, but this is not the case. Therefore, use the QT_TRANSLATE_NOOP macro to register the strings in Qt's translation system and translate the list when needed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/qthelper.h')
-rw-r--r--core/qthelper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/qthelper.h b/core/qthelper.h
index a3394e684..16303fe7d 100644
--- a/core/qthelper.h
+++ b/core/qthelper.h
@@ -38,7 +38,7 @@ int getCloudURL(QString &filename);
bool parseGpsText(const QString &gps_text, double *latitude, double *longitude);
void init_proxy();
QString getUUID();
-extern const QStringList waterTypes;
+QStringList getWaterTypesAsString();
extern const QStringList videoExtensionsList;
QStringList mediaExtensionFilters();
QStringList imageExtensionFilters();