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

class MainpanelModuleTranslate
{

    var $phrase;

    public function MainpanelModuleTranslate()
    {

        $this->phrase = array(
            'module_name' =>                'Main Panel',
            'my_courses' =>                 'My courses',
            'no_courses_inscription' =>     'There\'s no course inscription.',
            'no_topics_found' =>            'No topics found.',
            'no_tests_found' =>             'No tests found.',
            'course' =>                     'Course',
            'topic' =>                      'Topic',
            'ends_in' =>                    'End date',
            'status' =>                     'STATUS',
            'opened_since' =>               'Open date',
            'description' =>                'Description',
            'open_status_test' =>           'OPEN',
            'closed_status_test' =>         'CLOSED',
            'waiting_status_test' =>        'WAITING',
            'unknown_status_test' =>        'NON SPECIFIED',
            'answer_now' =>                 'ANSWER NOW',
            'check_answers' =>              'CHECK ANSWERS',
            'results_in' =>                 'Results date',
            'delivered_status_test' =>      'DELIVERED',
            'no_courses_created' =>         'No courses created',
            'add_new_course' =>             'New curs',
            'add_new_topic' =>              'Create new topic for this course',
            'add_new_test' =>               'Create new test for this topic',
            'topics_options' =>             'Topic settings'




        );
    }

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

}
