diff -ur basic256-1.1.4.0.orig/DocumentationWin.cpp basic256-1.1.4.0/DocumentationWin.cpp --- basic256-1.1.4.0.orig/DocumentationWin.cpp 2014-10-27 05:43:09.000000000 +0300 +++ basic256-1.1.4.0/DocumentationWin.cpp 2015-06-26 23:31:33.000000000 +0300 @@ -24,7 +24,7 @@ DocumentationWin::DocumentationWin (QWidget * parent) :QDialog(parent) { localecode = ((MainWindow *) parent)->localecode; - indexfile = "start.html"; + indexfile = "index.html"; // position where it was last on screen SETTINGS; @@ -65,7 +65,8 @@ docs->setSearchPaths(QStringList() << QApplication::applicationDirPath() + "/help/" << "/usr/share/basic256/help/" - << "/usr/local/share/basic256/help/" + << "/usr/share/basic256/help/" + localecode.left(2) + << "/usr/share/basic256/help/en/" << "./" << QApplication::applicationDirPath() + "/../wikihelp/help/" << QApplication::applicationDirPath() + "/wikihelp/help/" @@ -76,17 +77,13 @@ void DocumentationWin::go(QString word) { if (word == "") { - QString u = localecode.left(2) + "_" + indexfile; - docs->setSource(QUrl(u.toLower())); + docs->setSource(QUrl(indexfile)); if(docs->toPlainText().length() == 0) { - docs->setSource(QUrl(indexfile)); - if(docs->toPlainText().length() == 0) { - QMessageBox msgBox; - msgBox.setText(tr("Off-line help does not appear to be installed. Please use on-line help.")); - msgBox.setStandardButtons(QMessageBox::Ok); - msgBox.setDefaultButton(QMessageBox::Ok); - msgBox.exec(); - } + QMessageBox msgBox; + msgBox.setText(tr("Off-line help does not appear to be installed. Please use on-line help.")); + msgBox.setStandardButtons(QMessageBox::Ok); + msgBox.setDefaultButton(QMessageBox::Ok); + msgBox.exec(); } } else { QString u = localecode.left(2) + "_" + word + ".html";