GSoC/GCI Archive
Google Code-in 2013 KDE

Factor constellation names out of star plugin

completed by: Mikhail Ivchenko

mentors: Torsten Rahn, Dennis Nienhüser, René Küttner

Currently the names of the constellations and the abbreviations are hardcoded inside

void StarsPlugin::prepareNames()
    // Andromeda
    m_nativeHash["Andromeda"] = tr("Andromeda");
    m_abbrHash["Andromeda"] = "And";


The ids and names of the constellations (e.g. "Andromeda") and the abbreviations (e.g. "And") should be put into a separate file that is parsed on startup. The actual name needs still to be translated. In order to do this the script needs to be adjusted in a similar way as it has been done for the dgml files already. The translation part is one of the challenges of this task.

The other challenge is to avoid regressions which can easily happen while copying and pasting the text snippets. Both issues are crucial to this task.