I18n fixes

Added untranslated "Sun" name to the Sun so that scripts using that name
aren't broken under non English languages
Added translation to "Milky Way", the untranslated name is also kept as an
alternative so as not to break scripts
ver1_5_1
Christophe Teyssier 2007-12-18 23:59:08 +00:00
parent 2832a3e275
commit e25e0d85c8
2 changed files with 4 additions and 3 deletions

View File

@ -339,6 +339,8 @@ bool DSODatabase::load(istream& in, const string& resourcePath)
length = next - startPos;
++next;
}
if (objName.substr(startPos, length) == "Milky Way" && string("Milky Way") != _("Milky Way"))
namesDB->add(objCatalogNumber, _("Milky Way"));
namesDB->add(objCatalogNumber, objName.substr(startPos, length));
startPos = next;
}

View File

@ -1206,10 +1206,9 @@ bool StarDatabase::load(istream& in, const string& resourcePath)
length = next - startPos;
++next;
}
if (catalogNumber == 0 && objName.substr(startPos, length) == "Sun")
if (catalogNumber == 0 && objName.substr(startPos, length) == "Sun" && string("Sun") != _("Sun"))
namesDB->add(0, _("Sun"));
else
namesDB->add(catalogNumber, objName.substr(startPos, length));
namesDB->add(catalogNumber, objName.substr(startPos, length));
startPos = next;
}
}