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

class CoursesoptionsModuleTranslate
{

    var $phrase;

    public function CoursesoptionsModuleTranslate()
    {
        $this->phrase = array(
            'module_name' =>                'Main Panel',
            'my_courses' =>                 'Courses',
            'no_courses_inscription' =>     'Not enrolled into any course',
            'no_topics_found' =>            'Couldn\'t find any topic for this course.',
            'no_tests_found' =>             'Couldn\'t find any test for this topic.',
            'course' =>                     'Course',
            'topic' =>                      'Topic',
            'ends_in' =>                    'Close date',
            'status' =>                     'STATUS',
            'opened_since' =>               'Open since',
            'description' =>                'Description',
            'open_status_test' =>           'IN PROGRESS',
            'closed_status_test' =>         'CLOSED',
            'waiting_status_test' =>        'WAITING',
            'unknown_status_test' =>        'NOT SPECIFIED',
            'answer_now' =>                 'ANSWER NOW',
            'check_answers' =>              'CHECK ANSWERS',
            'results_in' =>                 'Results date',
            'delivered_status_test' =>      'DELIVERED',
            'no_courses_created' =>         'There\'s no course created.',
            'tools' =>                      'Tools',
            'add_new_course' =>             'New course',
            'add_new_topic' =>              'New topic',
            'add_new_test' =>               'New test',
            'edit_course' =>                'Edit course',
            'edit_topic' =>                 'Edit topic',
            'edit_test' =>                  'Edit test',
            'delete_course' =>              'Delete course',
            'delete_topic' =>               'Delete topic',
            'delete_test' =>                'Delete test',
            'topics_options' =>             'Topic settings',
            'courses_options' =>            'Course settings',
            'tests_options' =>              'Test settings',
            'course_name' =>                'Course name',
            'course_name_hint' =>           'Insert the name of the course',
            'step' =>                       'Step',
            'save' =>                       'Save',
            'select_edit_course' =>         'Select the course to edit',
            'course_not_selected' =>        'Course not selected.',
            'course_description' =>         'Course description',
            'course_description_hint' =>    'Insert a description of the course',
            'student_inscription_title' =>  'Student enrollment',
            'student_inscription' =>        'Search students',
            'student_inscription_hint' =>   'Insert here the name of the student',
            'students_with_inscription' =>  'Students with enrollment',
            'students_found' =>             'Students found',
            'select_delete_course' =>       'Select the course you wish to be deleted:',
            'delete' =>                     'Delete',
            'course_delete_warning' =>      'Are you sure to delete this course?',
            'test_type' =>                  'Test type',
            'test_title' =>                 'Test title',
            'test_description' =>           'Test description',
            'test_expire_date' =>           'Expire date',
            'test_open_date' =>             'Open date',
            'test_results_date' =>          'Results date',
            'test_type_hint' =>             'Select one type',
            'test_title_hint' =>            'Insert here a test title',
            'test_description_hint' =>      'Insert here a description test',
            'exercise' =>                   'Exercise',
            'practice' =>                   'Practice',
            'partial' =>                    'Partial',
            'test_type_error' =>            'Must select a test type',
            'test_title_error' =>           'Title must have at least 3 characters',
            'test_expire_date_error' =>     'Expire date is not valid',
            'test_open_date_error' =>       'Open date is not valid',
            'test_results_date_error' =>    'Results date is not valid',
            'test_open_date_error2' =>      'Open date cant be greater than Close date',
            'test_results_date_error2' =>   'Results date cant be lesser than Close date',
            'select_test_course' =>         'Select course',
            'select_topic' =>               'Select topic',
            'question_edit_title' =>        'Edit de questions',
            'points' =>                     'Points',
            'question' =>                   'Question',
            'select_test' =>                'Select test',
            'answer_edit_title' =>          'Edit answers',
            'is_correct' =>                 'Is correct?',
            'answer' =>                     'Answer',
            'answer_hint' =>                'Type here your answer',
            'add_answer' =>                 'Add answer',
            'add_question' =>               'Add question',
            'question_hint' =>              'Type here a question',
            'points_hint' =>                'Type here question points',
            'questions_stored' =>           'Questions stored',
            'answers_stored' =>             'Answers stored',
            'main_menu' =>                  'Main menu',
            'no_topic_selected' =>          'No topic selected',
            'no_course_selected' =>         'No course selected',
            'select_topic_course' =>        'Select course where the topic is going to be created',
            'topic_title' =>                'Topic title',
            'topic_title_hint' =>           'Type here a topic title',
            'topic_description' =>          'Description',
            'topic_description_hint' =>     'Type here a test description',
            'topic_order' =>                'Order',
            'topic_order_hint' =>           'Type here the order inside the course.',
            'exercise_weight' =>            'Exercise mark weight(%%)',
            'practice_weight' =>            'Practice mark weight (%%)',
            'partial_weight' =>             'Partial mark weight (%%)',
            'course_weight_warning' =>      'Next fields must add 100. These fields will be used to calculate the final mark. ',
            'total_not_100' =>              'The total of the fields X mark weight doesn\'t add 100 (%%)',
            'no_exercise_weight' =>         'Exercise mark weight not introduced',
            'no_practice_weight' =>         'Practice mark weight not introduced',
            'no_partial_weight' =>          'Partial mark weight not introduced',
            'course_field_errors' =>        'All fields with * must be filled',
            'no_topics_created' =>          'There\'s no topic created',
            'no_tests_created' =>           'There\'s no test created',
            'go_back' =>                    'Go back',
            'current_final_mark' =>         'Current final mark',
            'current_marks' =>              'Students marks',
            'student_name' =>               'Student name',
            'topic_delete_warning' =>       'Are you sure to delete the topic below?'


        );
    }

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

}
