summaryrefslogtreecommitdiffstats
path: root/core/qthelper.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-03-22 16:43:21 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-22 12:01:09 -0700
commiteb55ffde16f0f3c1df4c97c5229165acfda5637d (patch)
treeab19de3aaadbb1a8b14d80519eb3b894a1f384eb /core/qthelper.h
parent2dca7d0ce5ba4045732f3fcd6c8a1170b4ad902f (diff)
downloadsubsurface-eb55ffde16f0f3c1df4c97c5229165acfda5637d.tar.gz
cleanup: split uiLanguage() in two functions
The uiLanguage() function was used for two purposes: to initialize the language related preferences and to read the current language. To make things more easy to follow, split this function in two: one for initializing, one for getting the current language. Moreover, don't return the current locale in an out-parameter as there is already a function to do that [getLocale()]. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/qthelper.h')
-rw-r--r--core/qthelper.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/qthelper.h b/core/qthelper.h
index c91712716..6e23e6768 100644
--- a/core/qthelper.h
+++ b/core/qthelper.h
@@ -77,7 +77,8 @@ QString get_first_dive_date_string();
QString get_last_dive_date_string();
QString get_short_dive_date_string(timestamp_t when);
QString get_trip_date_string(timestamp_t when, int nr, bool getday);
-QString uiLanguage(QLocale *callerLoc);
+QString getUiLanguage();
+void initUiLanguage();
QLocale getLocale();
QVector<QPair<QString, int>> selectedDivesGasUsed();
QString getUserAgent();