Supernova.cpp   Supernova.cpp 
skipping to change at line 132 skipping to change at line 132
mag = QString::number(getVMagnitude(core), 'f', 2); mag = QString::number(getVMagnitude(core), 'f', 2);
mage = QString::number(getVMagnitudeWithExtinction(core), 'f ', 2); mage = QString::number(getVMagnitudeWithExtinction(core), 'f ', 2);
} }
if (flags&Name) if (flags&Name)
{ {
oss << "<h2>" << getNameI18n() << "</h2>"; oss << "<h2>" << getNameI18n() << "</h2>";
} }
if (flags&ObjectType) if (flags&ObjectType)
oss << q_("Type: <b>%1</b>").arg(q_("supernova")) << "<br /> "; oss << QString("%1: <b>%2</b>").arg(q_("Type"), q_("supernov a")) << "<br />";
if (flags&Magnitude) if (flags&Magnitude)
{ {
if (core->getSkyDrawer()->getFlagHasAtmosphere() && getVMagnitud QString emag = "";
e(core) <= maglimit) if (core->getSkyDrawer()->getFlagHasAtmosphere())
oss << q_("Magnitude: <b>%1</b> (extincted to: <b>%2</b>)"). emag = QString(" (%1: <b>%2</b>)").arg(q_("extincted to"
arg(mag, mage) << "<br>"; ), mage);
else
oss << q_("Magnitude: <b>%1</b>").arg(mag) << "<br>"; oss << QString("%1: <b>%2</b>%3").arg(q_("Magnitude"), mag, emag
) << "<br />";
} }
// Ra/Dec etc. // Ra/Dec etc.
oss << getPositionInfoString(core, flags); oss << getCommonInfoString(core, flags);
if (flags&Extra) if (flags&Extra)
{ {
oss << q_("Type of supernova: %1").arg(sntype) << "<br>"; oss << QString("%1: %2").arg(q_("Type of supernova"), sntype
oss << q_("Maximum brightness: %1").arg(getMaxBrightnessDate ) << "<br />";
(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 Supernova::getInfoMap(const StelCore *core) const QVariantMap Supernova::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 17 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/