<?php

class Message {
 
 	// static array
	static $m = array(
		'auth' => array(
			"required_fields"=>"Empty required file",
			"username_length"=>"Username must contations at less five characters",
			"password_confirm"=>"Password and password confirmation must be the same words",
			"password_length"=>"Password must contations at less five characters",
			"username_exist"=>"Username exist",
			"suc_reg"=>"Successfully registered",
			"suc_edit"=>"User account successfuly updated",
			"suc_signin"=>"Sucessfuly signed in",
			"wrong_username"=>"Wrong username",
			"wrong_password"=>"Wrong password",
			"not_singin"=>"You are not signed in",
			"no_session"=>"No session passed",
			"user_doesnot_exist"=>"Requested user does not exist",
			"cannot_delete"=>"Can not delete user file",
			"cannot_delete_yourself"=>"Can not delete your account",
			"suc_deleted"=>"User sucessfuly removed"
			),
		'file' => array(
			"write_error"=>"An error occurred during file saving"
			)
			,
		'priv' => array(
			"no_definition"=>"No permission definition for this account",
			"no_permission"=>"No permission to perform this operation",
			"cannot_delete"=>"Can not delete permision file"
			),
		'logger' => array(
			"group_doesnot_exist"=>"Group does not exist",
			"log_file_doesnot_exist"=>"Log does not exist"
			),
		'desktop' => array(
			"theme_doesnot_exist"=>"Theme does not exist",
			"user_theme_doesnot_exist"=>"User theme configuration file does not exist",
			"user_theme_cannot_write"=>"Cannot write user theme configuration file"

			),
		'file' => array(
			"no_permission"=>"You have not permission to access this directory",
			"unknown_file_type"=>"Unknown file type",
			"unknown_drive"=>"Unknown virtual drive"
			)	
			,
		'language' => array(
			"language_doesnot_exist"=>"Language file does not exist",
			"cannot_write"=>"Can not write language file"
			),
		'fonts' => array(
			"list_doesnot_exist"=>"Fonts list does not exist",
			"user_fonts_list_cannot_write"=>"Cannot write user fonts list configuration file"
			),
		'wallpaper' => array(
			"user_wallpaper_doesnot_exist"=>"User wallpaper configuration file does not exist",
			"user_wallpaper_cannot_write"=>"Cannot write user wallpaper configuration file"
			),
		'icons' => array(
			"user_icons_doesnot_exist"=>"User icons configuration file does not exist",
			"user_icons_cannot_write"=>"Cannot write user icons configuration file",
			"icons_doesnot_exist"=>"Icons file does not exist"
	
	
			)			
				
		);
	
	// function 
	static function getMessage($cat, $name){
		return self::$m[$cat][$name];
	}
	
	

}