Commit a1a86970 authored by Denis Khachko's avatar Denis Khachko

Course check programing language

parent c8541238
......@@ -344,7 +344,13 @@ QString Plugin::initialize(const QStringList &configurationArguments,
courseMenu->addMenu(rescentMenu);
}
}
MW->setCS(trUtf8("Кумир"));
Shared::AnalizerInterface * analizer =
ExtensionSystem::PluginManager::instance()
->findPlugin<Shared::AnalizerInterface>();
const QString languageName =
analizer->languageName().toLower();
MW->setCS(languageName);
MW->setInterface(this);
qRegisterMetaType<Shared::CoursesInterface::ProgramRunStatus>
("CourseManager.ProgramRunStatus");
......
......@@ -485,7 +485,7 @@ void MainWindowTask::startTask()
QMessageBox::about(NULL, trUtf8("Не выбрано задание"),trUtf8("Необходимо выбрать задание"));
return;
}
if(course->csName(curTaskIdx.internalId())!=CS)
if(course->csName(curTaskIdx.internalId()).toLower()!=CS)
{
QMessageBox::about(NULL, trUtf8("Неправильное окружение"),trUtf8("Необходим ")+course->csName(curTaskIdx.internalId()));
return;
......
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