StelTranslator.cpp   StelTranslator.cpp 
skipping to change at line 57 skipping to change at line 57
// Use system locale language by default // Use system locale language by default
StelTranslator* StelTranslator::globalTranslator = NULL; StelTranslator* StelTranslator::globalTranslator = NULL;
StelTranslator::StelTranslator(const QString& adomain, const QString& alang Name) StelTranslator::StelTranslator(const QString& adomain, const QString& alang Name)
: domain(adomain), : domain(adomain),
langName(alangName) langName(alangName)
{ {
translator = new QTranslator(); translator = new QTranslator();
bool res = translator->load(StelFileMgr::getLocaleDir()+"/"+adomain+ "/"+getTrueLocaleName()+".qm"); bool res = translator->load(StelFileMgr::getLocaleDir()+"/"+adomain+ "/"+getTrueLocaleName()+".qm");
if (!res) if (!res)
qWarning() << "Couldn't load translations for language " << getTrueLocaleName(); qWarning() << "Couldn't load translations for language " << getTrueLocaleName() << "in section" << adomain;
if (translator->isEmpty()) if (translator->isEmpty())
qWarning() << "Empty translation file for language " << getT rueLocaleName(); qWarning() << "Empty translation file for language " << getT rueLocaleName() << "in section" << adomain;
} }
StelTranslator::~StelTranslator() StelTranslator::~StelTranslator()
{ {
delete translator; delete translator;
translator = 0; translator = 0;
} }
QString StelTranslator::qtranslate(const QString& s, const QString& c) cons t QString StelTranslator::qtranslate(const QString& s, const QString& c) cons t
{ {
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 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/