mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
2dca7d0ce5
commit
eb55ffde16
8 changed files with 19 additions and 20 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue