<?php

class Translates{
	
		var $phrase ;
		
		public function Translates(){

            $this->phrase = array(
				'web_name' => _web_name,

                'yes' => 'SI',
                'no'    => 'NO',

                #Login
                'error_login_chars' => 'Characters allowed:',
                'error_login_length' => 'El tamaño de los campos Usuario y Contraseña han de ser mayor de 3 y menor que 20.',
                'user' => 'User',
                'password' => 'Password',
                'log_in' => 'Log in',
                'insert_login_here' => 'Insert here your user name',
                'insert_password_here' => 'Insert here your password',
                'wrong_user_or_pass' => 'User and/or password are incorrect. Please, try again.',

                #Test
                'no_questions_found' => 'No questions found.',
                'go_back' => 'GO BACK',
                'save_test_and_back' => 'SAVE AND EXIT',
                'saved_test_loaded' => 'ALL PREVIOUS ANSWERED QUESTIONS LOADED',
                'send_test' => 'DELIVER TEST',
                'delivered_test' => 'Test succesfully delivered. Click on the button below to return back to main menu',
                'already_delivered_test' => 'This test whas delivered before. Click on the button below to return back to main menu',
                'results_not_yet' => 'Can\'t show results until end date. Click on the button below to return back to main menu'


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

?>