diff --git a/lang/gpxsee_cs.ts b/lang/gpxsee_cs.ts index 3b9adce8..aa34e960 100644 --- a/lang/gpxsee_cs.ts +++ b/lang/gpxsee_cs.ts @@ -863,17 +863,17 @@ RouteItem - + Name Název - + Description Popis - + Distance Vzdálenost @@ -967,27 +967,27 @@ TrackItem - + Name Název - + Description Popis - + Distance Vzdálenost - + Time Čas - + Date Datum diff --git a/src/routeitem.cpp b/src/routeitem.cpp index 5824c44d..93851126 100644 --- a/src/routeitem.cpp +++ b/src/routeitem.cpp @@ -1,4 +1,3 @@ -#include #include #include "format.h" #include "waypoint.h" @@ -12,11 +11,10 @@ QString RouteItem::toolTip() ToolTip tt; if (!_name.isEmpty()) - tt.insert(qApp->translate("RouteItem", "Name"), _name); + tt.insert(tr("Name"), _name); if (!_desc.isEmpty()) - tt.insert(qApp->translate("RouteItem", "Description"), _desc); - tt.insert(qApp->translate("RouteItem", "Distance"), - Format::distance(_distance.last(), _units)); + tt.insert(tr("Description"), _desc); + tt.insert(tr("Distance"), Format::distance(_distance.last(), _units)); return tt.toString(); } diff --git a/src/trackitem.cpp b/src/trackitem.cpp index 1a02c080..730522a0 100644 --- a/src/trackitem.cpp +++ b/src/trackitem.cpp @@ -1,4 +1,3 @@ -#include #include #include #include "format.h" @@ -11,17 +10,14 @@ QString TrackItem::toolTip() ToolTip tt; if (!_name.isEmpty()) - tt.insert(qApp->translate("TrackItem", "Name"), _name); + tt.insert(tr("Name"), _name); if (!_desc.isEmpty()) - tt.insert(qApp->translate("TrackItem", "Description"), _desc); - tt.insert(qApp->translate("TrackItem", "Distance"), - Format::distance(_distance.last(), _units)); + tt.insert(tr("Description"), _desc); + tt.insert(tr("Distance"), Format::distance(_distance.last(), _units)); if (_time > 0) - tt.insert(qApp->translate("TrackItem", "Time"), - Format::timeSpan(_time)); + tt.insert(tr("Time"), Format::timeSpan(_time)); if (!_date.isNull()) - tt.insert(qApp->translate("TrackItem", "Date"), - _date.toString(Qt::SystemLocaleShortDate)); + tt.insert(tr("Date"), _date.toString(Qt::SystemLocaleShortDate)); return tt.toString(); }