StelTranslator.cpp   StelTranslator.cpp 
skipping to change at line 65 skipping to change at line 65
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() << "in section" << adomain; 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() << "in section" << adomain; qWarning() << "Empty translation file for language " << getT rueLocaleName() << "in section" << adomain;
} }
StelTranslator::~StelTranslator() StelTranslator::~StelTranslator()
{ {
delete translator; delete translator;
translator = 0; translator = NULL;
} }
QString StelTranslator::qtranslate(const QString& s, const QString& c) cons t QString StelTranslator::qtranslate(const QString& s, const QString& c) cons t
{ {
if (s.isEmpty()) if (s.isEmpty())
return ""; return "";
QString res = translator->translate("", s.toUtf8().constData(), c.to Utf8().constData()); QString res = translator->translate("", s.toUtf8().constData(), c.to Utf8().constData());
if (res.isEmpty()) if (res.isEmpty())
return s; return s;
return res; return res;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 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/