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 scriptsver1_5_1
parent
2832a3e275
commit
e25e0d85c8
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue