Commit ad7b8d4a authored by schultz's avatar schultz

removed obsolete outcommented calls

parent 0fa79ebd
...@@ -547,20 +547,11 @@ int main(int argc, char **argv) ...@@ -547,20 +547,11 @@ int main(int argc, char **argv)
// Install translator for qt internals // Install translator for qt internals
QTranslator qtTranslator; QTranslator qtTranslator;
// std::cerr << "Loading qt translations from: " << QLibraryInfo::location(QLibraryInfo::TranslationsPath).toStdString() << std::endl;
// if ( qtTranslator.load("qt_" + tLang, QLibraryInfo::location(QLibraryInfo::TranslationsPath)) )
// std::cerr << "Loaded" << std::endl;
// std::cerr << "Loading qt translations from: " << QLibraryInfo::location(QLibraryInfo::TranslationsPath).toStdString() << std::endl;
qtTranslator.load("qt_" + tLang, QLibraryInfo::location(QLibraryInfo::TranslationsPath)); qtTranslator.load("qt_" + tLang, QLibraryInfo::location(QLibraryInfo::TranslationsPath));
// std::cerr << "Loaded" << std::endl;
app.installTranslator(&qtTranslator); app.installTranslator(&qtTranslator);
// install translator for Core Application // install translator for Core Application
QString translationDir = OpenFlipper::Options::translationsDirStr() + QDir::separator(); QString translationDir = OpenFlipper::Options::translationsDirStr() + QDir::separator();
// std::cerr << "Loading own translations from: " << QString(translationDir + " (" + tLang + ")").toStdString() << std::endl;
QDir dir(translationDir); QDir dir(translationDir);
dir.setFilter(QDir::Files); dir.setFilter(QDir::Files);
...@@ -572,12 +563,12 @@ int main(int argc, char **argv) ...@@ -572,12 +563,12 @@ int main(int argc, char **argv)
if ( fileInfo.baseName().contains(tLang) ){ if ( fileInfo.baseName().contains(tLang) ){
QTranslator* myAppTranslator = new QTranslator(); QTranslator* myAppTranslator = new QTranslator();
if ( myAppTranslator->load( fileInfo.filePath() ) ){ if ( myAppTranslator->load( fileInfo.filePath() ) )
// std::cerr << "Loaded " << fileInfo.fileName().toStdString() << std::endl; {
app.installTranslator(myAppTranslator); app.installTranslator(myAppTranslator);
} else { } else
delete myAppTranslator; {
delete myAppTranslator;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment