Skip to content

Commit

Permalink
Use native name for constellation translation, fallback to global dic…
Browse files Browse the repository at this point in the history
…tionary
  • Loading branch information
10110111 committed Jan 29, 2024
1 parent e979aae commit 78af596
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/modules/ConstellationMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,9 @@ void ConstellationMgr::updateI18n()
const StelTranslator& trans = StelApp::getInstance().getLocaleMgr().getSkyTranslator();
for (auto* constellation : constellations)
{
constellation->nameI18 = trans.qtranslate(constellation->englishName, "constellation");
constellation->nameI18 = trans.tryQtranslate(constellation->nativeName, "constellation");
if (constellation->nameI18.isEmpty())
constellation->nameI18 = qc_(constellation->nativeName, "constellation");
}
}

Expand Down

0 comments on commit 78af596

Please sign in to comment.