Skip to content

Commit

Permalink
Remove the name fixup that's no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
10110111 committed Feb 21, 2024
1 parent 2700595 commit 3de0999
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/core/modules/NebulaMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1763,19 +1763,7 @@ void NebulaMgr::loadCultureSpecificNames(const QJsonObject& data, const QMap<QSt
}
else if (key.startsWith("NAME "))
{
// FIXME: this is a kludge for the discrepancy between stellarium-skycultures database
// and Stellarium's internal database. Maybe we should make use of the former and drop
// the latter instead of doing this name translation.
auto name = key.mid(5);
static const QHash<QString, QString> renamer{
{"Antares" , "Antares Nebula" },
{"Beehive Cluster" , "Beehive" },
{"Carina Nebula" , "Eta Carinae Nebula"},
{u8"ω Cen Cluster" , "Omega Centauri" },
};
if (const auto it = renamer.find(name); it != renamer.end())
name = it.value();
loadCultureSpecificNameForNamedObject(it.value().toArray(), name, commonNameToIdMap);
loadCultureSpecificNameForNamedObject(it.value().toArray(), key.mid(5), commonNameToIdMap);
}
else if (key.startsWith("C "))
{
Expand Down

0 comments on commit 3de0999

Please sign in to comment.