<?php
/**
 * User: David Camacho
 * Date: 31/03/2015
 * Time: 18:28
 */


class ItsModuleTranslate {

    var $phrase ;

    public function ItsModuleTranslate(){

        $this->phrase = array(
            'module_name' =>                        'ITS',
            'its_title' =>                          'Intelligent Tutoring System',
            'options' =>                            'Options',
            'configure_historic_title' =>           'Settings',
            'configure_historic' =>                 'Set course',
            'results' =>                            'Results',
            'continue' =>                           'Continue',
            'error1' =>                             'This course can\'t be use as CURRENT course. <br>CONDITIONS<br> 1- Must have at least one of each distinct test type (exercise, practice and partial). <br> 2- Must have more than 2 students enrolled in selected course.',
            'select_course_for_prediction' =>       'Select Current course wich you want to obtain a prediction of the final marks',
            'select_historic_courses' =>            'Select HISTORIC course wich will be used as training data for prediction',
            'is_valid' =>                           'This is a valid historic course',
            'is_not_valid' =>                       'This is not a valid historic course. <br>CONDITIONS<br> 1- Must have at least one of each distinct test type (exercise, practice and partial). <br> 2- Must have more than 2 students enrolled in selected course.',
            'main_menu' =>                          'Main Menú',
            'sure_continue' =>                      'Are you sure to continue?<br>(this option will override this current course historic settings)',
            'save_valid_courses' =>                 'Save valid courses',
            'success_historic' =>                   'Operation successful.',
            'all_historic_courses_invalid' =>       'This course can\'t be use as HISTORIC course. <br>CONDITIONS<br> 1- Must have at least one of each distinct test type (exercise, practice and partial). <br> 2- Must have more than 2 students enrolled in selected course.',
            'configured_courses' =>                 'Configured courses',
            'no_courses_configured' =>              'There\'s no course configured',
            'delete_warning' =>                     'Are you sure to delete this course settings?:',
            'delete_error' =>                       'There was a problem during course delete. Maybe is not correctly deleted',
            'delete_success' =>                     'Course settings deleted successfully',
            'delete' =>                             'Delete',
            'failed' =>                             'Failed',
            'pass' =>                               'Pass',
            'good' =>                               'Good',
            'remarkable' =>                         'Remarkable',
            'outstanding' =>                        'Outstanding',
            'chart_title1' =>                       'Final marks ratio prediction',
            'chart_title2_1' =>                     'Prediction for ',
            'chart_title2_2' =>                     ' final marks by student'
        );
    }

    public function getTranslate($word){
        if (isset($this->phrase[$word]))
            return $this->phrase[$word];
        else
            return $word;
    }

}