~rep-dot-nop/stellarium/http_proxy

« back to all changes in this revision

Viewing changes to src/gui/ViewDialog.cpp

  • Committer: Alexander Wolf
  • Date: 2011-09-29 12:49:02 UTC
  • mfrom: (4956.1.2 applanguage)
  • Revision ID: alex.v.wolf@gmail.com-20110929124902-cqm2aqubqn74tttk
Fixed issue of load localized description of skycultures/landscapes

Show diffs side-by-side

added added

removed removed

Lines of Context:
391
391
        QString descPath;
392
392
        try
393
393
        {
394
 
                descPath = StelFileMgr::findFile("skycultures/" + StelApp::getInstance().getSkyCultureMgr().getCurrentSkyCultureID() + "/description."+StelApp::getInstance().getLocaleMgr().getAppLanguage()+".utf8");
 
394
                QString lang = StelApp::getInstance().getLocaleMgr().getAppLanguage();
 
395
                if (!QString("pt_BR zh_CN zh_HK zh_TW").contains(lang)) 
 
396
                {
 
397
                        lang = lang.split("_").at(0);
 
398
                }
 
399
                descPath = StelFileMgr::findFile("skycultures/" + StelApp::getInstance().getSkyCultureMgr().getCurrentSkyCultureID() + "/description."+lang+".utf8");
395
400
        }
396
401
        catch (std::runtime_error& e)
397
402
        {