Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2015, 9:01:33 PM (9 years ago)
Author:
landauf
Message:

removed dependency of Language on CoreConfig.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/CoreConfig.cc

    r10479 r10480  
    4747    {
    4848        RegisterObject(CoreConfig);
     49        this->setConfigValues();
    4950    }
    5051
     
    114115    {
    115116        // Read the translation file after the language was configured
    116         Language::getInstance().readTranslatedLanguageFile();
     117        bool success = Language::getInstance().readTranslatedLanguageFile(this->language_);
     118        if (!success)
     119        {
     120            // Set the language in the config-file back to the default.
     121            ResetConfigValue(language_);
     122            orxout(internal_info, context::language) << "Reset language to " << this->language_ << '.' << endl;
     123        }
    117124    }
    118125
     
    126133            bInitialized = true;
    127134        }
    128     }
    129 
    130     //! Sets the language in the config-file back to the default.
    131     void CoreConfig::resetLanguage()
    132     {
    133         ResetConfigValue(language_);
    134135    }
    135136
Note: See TracChangeset for help on using the changeset viewer.