Nova.cpp   Nova.cpp 
skipping to change at line 147 skipping to change at line 147
QTextStream oss(&str); QTextStream oss(&str);
double mag = getVMagnitude(core); double mag = getVMagnitude(core);
if (flags&Name) if (flags&Name)
{ {
QString name = novaName.isEmpty() ? QString("<h2>%1</h2>").a rg(designation) : QString("<h2>%1 (%2)</h2>").arg(getNameI18n()).arg(design ation); QString name = novaName.isEmpty() ? QString("<h2>%1</h2>").a rg(designation) : QString("<h2>%1 (%2)</h2>").arg(getNameI18n()).arg(design ation);
oss << name; oss << name;
} }
if (flags&ObjectType) if (flags&ObjectType)
oss << q_("Type: <b>%1</b> (%2)").arg(q_("nova")).arg(novaTy pe) << "<br />"; oss << QString("%1: <b>%2</b> (%3)").arg(q_("Type"), q_("nov a"), novaType) << "<br />";
if (flags&Magnitude) if (flags&Magnitude)
{ {
if (core->getSkyDrawer()->getFlagHasAtmosphere()) QString emag = "";
oss << q_("Magnitude: <b>%1</b> (extincted to: <b>%2</b>)"). if (core->getSkyDrawer()->getFlagHasAtmosphere())
arg(QString::number(mag, 'f', 2), emag = QString(" (%1: <b>%2</b>)").arg(q_("extincted
to"), QString::number(getVMagnitudeWithExtinction(core), 'f', 2));
QString::number(getVMagnitudeWithExtinction(core), 'f', 2)) << "<br>";
else oss << QString("%1: <b>%2</b>%3").arg(q_("Magnitude"), QStri
oss << q_("Magnitude: <b>%1</b>").arg(mag, 0, 'f', 2) << "<b ng::number(mag, 'f', 2), emag) << "<br />";
r>";
} }
// Ra/Dec etc. // Ra/Dec etc.
oss << getPositionInfoString(core, flags); oss << getCommonInfoString(core, flags);
if (flags&Extra) if (flags&Extra)
{ {
oss << q_("Maximum brightness: %1").arg(getMaxBrightnessDate (peakJD)) << "<br>"; oss << QString("%1: %2").arg(q_("Maximum brightness"), getMa xBrightnessDate(peakJD)) << "<br />";
if (distance>0) if (distance>0)
{ {
//TRANSLATORS: Unit of measure for distance - Light Years //TRANSLATORS: Unit of measure for distance - Light Years
oss << q_("Distance: %1 ly").arg(distance*1000) << " QString ly = qc_("ly", "distance");
<br>"; oss << QString("%1: %2 %3").arg(q_("Distance"), QStr
ing::number(distance*1000, 'f', 2), ly) << "<br />";
} }
} }
postProcessInfoString(str, flags); postProcessInfoString(str, flags);
return str; return str;
} }
QVariantMap Nova::getInfoMap(const StelCore *core) const QVariantMap Nova::getInfoMap(const StelCore *core) const
{ {
QVariantMap map = StelObject::getInfoMap(core); QVariantMap map = StelObject::getInfoMap(core);
 End of changes. 5 change blocks. 
13 lines changed or deleted 13 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/