StelLocaleMgr.cpp   StelLocaleMgr.cpp 
skipping to change at line 141 skipping to change at line 141
qDebug() << "Application language is " << StelTranslator::globalTran slator.getTrueLocaleName(); qDebug() << "Application language is " << StelTranslator::globalTran slator.getTrueLocaleName();
StelApp::getInstance().updateI18n(); StelApp::getInstance().updateI18n();
} }
/************************************************************************* /*************************************************************************
Set the sky language. Set the sky language.
*************************************************************************/ *************************************************************************/
void StelLocaleMgr::setSkyLanguage(const QString& newSkyLanguageName) void StelLocaleMgr::setSkyLanguage(const QString& newSkyLanguageName)
{ {
// Update the translator with new locale name // Update the translator with new locale name
skyTranslator = StelTranslator("stellarium", StelFileMgr::getLocaleD ir(), newSkyLanguageName); skyTranslator = StelTranslator("stellarium-skycultures", StelFileMgr ::getLocaleDir(), newSkyLanguageName);
qDebug() << "Sky language is " << skyTranslator.getTrueLocaleName(); qDebug() << "Sky language is " << skyTranslator.getTrueLocaleName();
StelApp::getInstance().updateI18n(); StelApp::getInstance().updateI18n();
} }
/************************************************************************* /*************************************************************************
Get the language currently used for sky objects.. Get the language currently used for sky objects..
*************************************************************************/ *************************************************************************/
QString StelLocaleMgr::getSkyLanguage() const QString StelLocaleMgr::getSkyLanguage() const
{ {
return skyTranslator.getTrueLocaleName(); return skyTranslator.getTrueLocaleName();
} }
// Get the StelTranslator currently used for sky objects. // Get the StelTranslator currently used for sky objects.
StelTranslator& StelLocaleMgr::getSkyTranslator() StelTranslator& StelLocaleMgr::getSkyTranslator()
{ {
return skyTranslator; return skyTranslator;
} }
StelTranslator& StelLocaleMgr::getAppStelTranslator() const
{
return StelTranslator::globalTranslator;
}
// Return the time in ISO 8601 format that is : %Y-%m-%d %H:%M:%S // Return the time in ISO 8601 format that is : %Y-%m-%d %H:%M:%S
QString StelLocaleMgr::getISO8601TimeLocal(double JD) const QString StelLocaleMgr::getISO8601TimeLocal(double JD) const
{ {
double shift = 0.0; double shift = 0.0;
if (timeZoneMode == STzGMTShift) if (timeZoneMode == STzGMTShift)
{ {
shift = GMTShift; shift = GMTShift;
} }
else else
{ {
 End of changes. 2 change blocks. 
1 lines changed or deleted 6 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/