Commit b05ea1c1 authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Use i18n() instead of tr()

parent 8bc1b3f6
...@@ -607,25 +607,25 @@ void Align::handlePointTooltip(QMouseEvent *event) ...@@ -607,25 +607,25 @@ void Align::handlePointTooltip(QMouseEvent *event)
if (point < 0) if (point < 0)
return; return;
QToolTip::showText(event->globalPos(), QToolTip::showText(event->globalPos(),
tr("<table>" i18n("<table>"
"<tr>" "<tr>"
"<th colspan=\"2\">Object %L1: %L2</th>" "<th colspan=\"2\">Object %1: %2</th>"
"</tr>" "</tr>"
"<tr>" "<tr>"
"<td>RA:</td><td>%L3</td>" "<td>RA:</td><td>%3</td>"
"</tr>" "</tr>"
"<tr>" "<tr>"
"<td>DE:</td><td>%L4</td>" "<td>DE:</td><td>%4</td>"
"</tr>" "</tr>"
"<tr>" "<tr>"
"<td>dRA:</td><td>%L5</td>" "<td>dRA:</td><td>%5</td>"
"</tr>" "</tr>"
"<tr>" "<tr>"
"<td>dDE:</td><td>%L6</td>" "<td>dDE:</td><td>%6</td>"
"</tr>" "</tr>"
"</table>") "</table>",
.arg(point + 1) point + 1,
.arg(solutionTable->item(point, 2)->text(), solutionTable->item(point, 2)->text(),
solutionTable->item(point, 0)->text(), solutionTable->item(point, 0)->text(),
solutionTable->item(point, 1)->text(), solutionTable->item(point, 1)->text(),
solutionTable->item(point, 4)->text(), solutionTable->item(point, 4)->text(),
......
...@@ -582,24 +582,24 @@ void AltVsTime::plotMousePress(QCPAbstractPlottable *abstractPlottable, int data ...@@ -582,24 +582,24 @@ void AltVsTime::plotMousePress(QCPAbstractPlottable *abstractPlottable, int data
QToolTip::hideText(); QToolTip::hideText();
QToolTip::showText(event->globalPos(), QToolTip::showText(event->globalPos(),
tr("<table>" i18n("<table>"
"<tr>" "<tr>"
"<th colspan=\"2\">%L1</th>" "<th colspan=\"2\">%1</th>"
"</tr>" "</tr>"
"<tr>" "<tr>"
"<td>LST: </td>" "<td>LST: </td>"
"<td>%L3</td>" "<td>%3</td>"
"</tr>" "</tr>"
"<tr>" "<tr>"
"<td>LT: </td>" "<td>LT: </td>"
"<td>%L2</td>" "<td>%2</td>"
"</tr>" "</tr>"
"<tr>" "<tr>"
"<td>Altitude: </td>" "<td>Altitude: </td>"
"<td>%L4</td>" "<td>%4</td>"
"</tr>" "</tr>"
"</table>") "</table>",
.arg((graph->name().isEmpty() ? "???" : graph->name()), graph->name().isEmpty() ? "???" : graph->name(),
localTime.toString(), localTime.toString(),
localSiderealTime.toString(), localSiderealTime.toString(),
QString::number(yValue, 'f', 2) + ' ' + QChar(176)), QString::number(yValue, 'f', 2) + ' ' + QChar(176)),
...@@ -935,24 +935,24 @@ void AltVsTime::mouseOverLine(QMouseEvent *event) ...@@ -935,24 +935,24 @@ void AltVsTime::mouseOverLine(QMouseEvent *event)
QToolTip::hideText(); QToolTip::hideText();
QToolTip::showText(event->globalPos(), QToolTip::showText(event->globalPos(),
tr("<table>" i18n("<table>"
"<tr>" "<tr>"
"<th colspan=\"2\">%L1</th>" "<th colspan=\"2\">%1</th>"
"</tr>" "</tr>"
"<tr>" "<tr>"
"<td>LST: </td>" "<td>LST: </td>"
"<td>%L3</td>" "<td>%3</td>"
"</tr>" "</tr>"
"<tr>" "<tr>"
"<td>LT: </td>" "<td>LT: </td>"
"<td>%L2</td>" "<td>%2</td>"
"</tr>" "</tr>"
"<tr>" "<tr>"
"<td>Altitude: </td>" "<td>Altitude: </td>"
"<td>%L4</td>" "<td>%4</td>"
"</tr>" "</tr>"
"</table>") "</table>",
.arg((graph->name().isEmpty() ? "???" : graph->name()), graph->name().isEmpty() ? "???" : graph->name(),
localTime.toString(), localSiderealTime.toString(), localTime.toString(), localSiderealTime.toString(),
QString::number(yValue, 'f', 2) + ' ' + QChar(176)), QString::number(yValue, 'f', 2) + ' ' + QChar(176)),
avtUI->View, avtUI->View->rect()); avtUI->View, avtUI->View->rect());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment