Extended localization to all DSO and star names.

pull/3/head
Vincent Giangiulio 2008-10-13 21:34:44 +00:00
parent d7b12d4110
commit 61b94d29a3
1 changed files with 8 additions and 0 deletions

View File

@ -523,6 +523,14 @@ static int object_localname(lua_State* l)
case Selection::Type_Body:
lua_pushstring(l, sel->body()->getName(true).c_str());
break;
case Selection::Type_DeepSky:
lua_pushstring(l, celx.appCore(AllErrors)->getSimulation()->getUniverse()
->getDSOCatalog()->getDSOName(sel->deepsky(), true).c_str());
break;
case Selection::Type_Star:
lua_pushstring(l, celx.appCore(AllErrors)->getSimulation()->getUniverse()
->getStarCatalog()->getStarName(*(sel->star()), true).c_str());
break;
default:
lua_pushstring(l, "?");
break;