summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-10 20:37:02 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-10 20:37:02 (GMT)
commit5208de325ec74c6adc959957d32698d2dc01923f (patch)
treeac3b657c35eb1cf628bb64e4f8aae53f3977283e
parentd27bcd539398d3a37df29f13c664732ad5153aba (diff)
Make EarthquakeItem tooltip translatable
-rw-r--r--src/plugins/render/earthquake/EarthquakeItem.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/render/earthquake/EarthquakeItem.cpp b/src/plugins/render/earthquake/EarthquakeItem.cpp
index 8e0f429..78bf00f 100644
--- a/src/plugins/render/earthquake/EarthquakeItem.cpp
+++ b/src/plugins/render/earthquake/EarthquakeItem.cpp
@@ -124,13 +124,10 @@ void EarthquakeItem::updateTooltip()
{
QString html = QLatin1String("<table cellpadding=\"2\">");
if ( m_dateTime.isValid() ) {
- html += QLatin1String("<tr><td align=\"right\">Date</td>") +
- QLatin1String("<td>") + m_dateTime.toString(Qt::SystemLocaleShortDate) + QLatin1String("</td></tr>");
+ html += QLatin1String("<tr><td align=\"right\">") + tr("Date:") + QLatin1String("</td><td>") + m_dateTime.toString(Qt::SystemLocaleShortDate) + QLatin1String("</td></tr>");
}
html +=
- QLatin1String("<tr><td align=\"right\">Magnitude</td><td>") + QString::number(m_magnitude) + QLatin1String("</td></tr>") +
- QLatin1String("<tr><td align=\"right\">Depth</td><td>") + QString::number(m_depth) + QLatin1String(" km</td></tr>") +
- QLatin1String("</table>");
+ QLatin1String("<tr><td align=\"right\">") + tr("Magnitude:") + QLatin1String("</td><td>") + QString::number(m_magnitude) + QLatin1String("</td></tr><tr><td align=\"right\">") + tr("Depth:") + QLatin1String("</td><td>") + QString::number(m_depth) + QLatin1String(" km</td></tr></table>");
setToolTip( html );
}