mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Translations: unify gettextFromC::tr() and QObject::tr()
There were two catch-all classes for translations outside of class context. gettextFromC was used exclusively from C, but C++ used both, gettextFromC and QObject. Some of the string were even present in both. Therefore, unify to gettextFromC throughout the code base. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
2f95141330
commit
57c01f7a66
11 changed files with 41 additions and 39 deletions
|
@ -107,8 +107,8 @@ if (property == "year") {
|
|||
} else if (property == "max_temp") {
|
||||
return object.year->max_temp.mkelvin == 0 ? "0" : get_temperature_string(object.year->max_temp, true);
|
||||
} else if (property == "total_time") {
|
||||
return get_dive_duration_string(object.year->total_time.seconds, QObject::tr("h"),
|
||||
QObject::tr("min"), QObject::tr("sec"), " ");
|
||||
return get_dive_duration_string(object.year->total_time.seconds, gettextFromC::tr("h"),
|
||||
gettextFromC::tr("min"), gettextFromC::tr("sec"), " ");
|
||||
} else if (property == "avg_time") {
|
||||
return get_minutes(object.year->total_time.seconds / object.year->selection_size);
|
||||
} else if (property == "shortest_time") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue