Commit e4634c69 authored by Samikshan Bairagya's avatar Samikshan Bairagya

In the details-view display magnitude upto 2 decimal places. Add...

In the details-view display magnitude upto 2 decimal places. Add source/licence information for kstars/data/PlanetFacts.dat
parent fcd4fa39
##########################################################################################################################################################################################
# The following data for the planets in the solar system has been obtained from http://wikipedia.org/. The text is available under the Creative Commons Attribution-ShareAlike License. #
##########################################################################################################################################################################################
Mercury::Mercury is the innermost of the eight planets in the Solar System. It is also the smallest, and its orbit has the highest eccentricity of the eight. It orbits the Sun once in about 88 Earth days, completing three rotations about its axis for every two orbits. Mercury has the smallest axial tilt of the Solar System planets. The perihelion of Mercury's orbit precesses around the Sun at an excess of 43 arcseconds per century beyond what is predicted by Newtonian mechanics, a phenomenon that was explained in the 20th century by Albert Einstein's General Theory of Relativity. Mercury, being an inferior planet, appears as a morning star and an evening star, but is much more difficult to see than the other inferior planet, Venus. At its brightest, Mercury is technically a very bright object when viewed from Earth, but it is not easily seen in practice because of its proximity in the sky to the Sun.
Venus::Venus is the second planet from the Sun, orbiting it every 224.7 Earth days. The planet is named after Venus, the Roman goddess of love and beauty. After the Moon, it is the brightest natural object in the night sky, reaching an apparent magnitude of −4.6, bright enough to cast shadows. Because Venus is an inferior planet from Earth, it never appears to venture far from the Sun: its elongation reaches a maximum of 47.8°. Venus reaches its maximum brightness shortly before sunrise or shortly after sunset, for which reason it has been known as the Morning Star or Evening Star.
Mars::Mars is the fourth planet from the Sun in the Solar System. Named after the Roman god of war, Mars, it is often described as the "Red Planet" as the iron oxide prevalent on its surface gives it a reddish appearance. Mars is a terrestrial planet with a thin atmosphere, having surface features reminiscent both of the impact craters of the Moon and the volcanoes, valleys, deserts, and polar ice caps of Earth. The rotational period and seasonal cycles of Mars are likewise similar to those of Earth, as is the tilt that produces the seasons. Mars is the site of Olympus Mons, the highest known mountain within the Solar System, and of Valles Marineris, the largest canyon. The smooth Borealis basin in the northern hemisphere covers 40% of the planet and may be a giant impact feature. Mars can easily be seen from Earth with the naked eye. Its apparent magnitude reaches −3.0[7] a brightness surpassed only by Jupiter, Venus, the Moon, and the Sun.
......
......@@ -117,7 +117,7 @@ void WIView::loadDetailsView(SkyObjItem *soitem, int index)
if (soitem->getType() == SkyObjItem::Constellation)
magText = i18n("Magnitude: --");
else
magText = i18n("Magnitude") + ": " + QString::number(soitem->getMagnitude()) + " mag";
magText = i18n("Magnitude: ") + KGlobal::locale()->formatNumber(soitem->getMagnitude(), 2) + " mag";
magTextObj->setProperty("text", magText);
QString sbText = i18n("Surface Brightness") + ": " + soitem->getSurfaceBrightness();
......
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