<?php
/*****************************************************************************************************************************************************
******************************************************************************************************************************************************

																		Option Translation
																		
*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function reza_t($id) {
	global $smof_data;
	$t = !empty( $smof_data['t_'.$id]) ?  $smof_data['t_'.$id]  : reza_translation($id);
	return $t;
} 

/*****************************************************************************************************************************************************
******************************************************************************************************************************************************

																		Translation
																		
*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function reza_translation($id= false) {
 	$translation = array(
	'all'					=>  esc_html__('All', 'reza'),
	'full_list'				=>  esc_html__('View All', 'reza'),
 	'category'					=>  esc_html__('All Categories', 'reza'),
	'homepage'					=>  esc_html__('Homepage', 'reza'),
	'archives'					=>  esc_html__('Archives', 'reza'),
	'author'					=>  esc_html__('Author', 'reza'),
	'page'						=>  esc_html__('Page', 'reza'),
	'404'						=>  esc_html__('Error 404', 'reza'),
	'of'						=>  esc_html__('of', 'reza'),
	'first'						=>  esc_html__('First', 'reza'),
	'last'						=>  esc_html__('Last', 'reza'),
	'previous'					=>  esc_html__('Previous', 'reza'),
	'next'						=>  esc_html__('Next', 'reza'),
	'edit'						=>  esc_html__('Edit', 'reza'),
	'by'						=>  esc_html__('By', 'reza'),
	'0'							=>  esc_html__('0', 'reza'),
	'1'							=>  esc_html__('1', 'reza'),
	'commetsoff'				=>  esc_html__('Comments Off', 'reza'),
	'read_more'					=>  esc_html__('Read More', 'reza'),
	'view_more'					=>  esc_html__('View More', 'reza'),
	'load_more'					=>  esc_html__('Load more', 'reza'),
	'welcome'					=>  esc_html__('Welcome', 'reza'),
	'dashboard'					=>  esc_html__('Dashboard', 'reza'),
	'profile'					=>  esc_html__('Your Profile', 'reza'),
	'logout'					=>  esc_html__('Log Out', 'reza'),
	'login'						=>  esc_html__('Log In', 'reza'),
	'singin'					=>  esc_html__('Sing In', 'reza'),
	'wishlist'					=>  esc_html__('Wishlist', 'reza'),
	'username'					=>  esc_html__('Username', 'reza'),
	'password'					=>  esc_html__('Password', 'reza'),
	'remember'					=>  esc_html__('Remember Me', 'reza'),
	'register'					=>  esc_html__('Register', 'reza'),
	'lostpassword'				=>  esc_html__('Lost Your Password?', 'reza'),
	'view'						=>  esc_html__('View', 'reza'),
	'views'						=>  esc_html__('Views', 'reza'),
	'tags'						=>  esc_html__('Tags', 'reza'),
	'years'						=>  esc_html__('Years', 'reza'),
	'year'						=>  esc_html__('Year', 'reza'),
	'months'					=>  esc_html__('Months', 'reza'),
	'month'						=>  esc_html__('Month', 'reza'),
	'days'						=>  esc_html__('Days', 'reza'),
	'day'						=>  esc_html__('Day', 'reza'),
	'hours'						=>  esc_html__('Hours', 'reza'),
	'hour'						=>  esc_html__('Hour', 'reza'),
	'minutes'					=>  esc_html__('Mins', 'reza'),
	'minute'					=>  esc_html__('Minute', 'reza'),
	'seconds'					=>  esc_html__('Secs', 'reza'), 
	'second'					=>  esc_html__('Second', 'reza'), 
 	'ago'						=>  esc_html__('ago', 'reza'),
	'pages'						=>  esc_html__('Pages', 'reza'),
	'share'						=>  esc_html__('Share this Post', 'reza'),
	'at'						=>  esc_html__('at', 'reza'),
	'yourcomment'				=>  esc_html__('Your Comment is Awaiting Moderation.', 'reza'),
 	'pingback'					=>  esc_html__('Pingback', 'reza'),
	'search'					=>  esc_html__('Search', 'reza'),
	'search_for'				=>  esc_html__('Search Results for', 'reza'),
	'search_for'				=>  esc_html__('Search Results for', 'reza'),
	'availability'				=>  esc_html__('Availability', 'reza'),
	'nocommentsyet'				=>  esc_html__('No Comments Yet', 'reza'),
	'commentalready'			=>  esc_html__('Comment', 'reza'),
	'commentsalready'			=>  esc_html__('Comments', 'reza'),
 	'commentsclosed'			=>  esc_html__('Comments are Closed.', 'reza'),
 	'tagarchives'				=>  esc_html__('Tag Archives', 'reza'),
 	'opps404'					=>  esc_html__('Oops, This Page Could Not Be Found!','reza'),
 	'opps404_dese'				=>  esc_html__('The page you are looking for might have been removed, had its name changed, or is temporarily unavailable..','reza'),
 	'sorry'						=>  esc_html__("Sorry, but nothing matched your search terms. Please try again with some different keywords.", 'reza'),
 	'compare'					=>  esc_html__("Compare", 'reza'),
	'instock'					=>  esc_html__("In Stock", 'reza'),
	'outstock'					=>  esc_html__('Out of Stock', 'reza'),
	'new'						=>  esc_html__("New", 'reza'),
	'hot'						=>  esc_html__("Hot", 'reza'),
	'featured'					=>  esc_html__("Featured", 'reza'),
	'sale'						=>  esc_html__('Sale', 'reza'), 
	'mycart'					=>  'سبد خرید',
	'searchitem'				=>  esc_html__('Search...', 'reza'),
 	'salet'						=>  esc_html__('Sale!', 'reza'),
	'subtotal'					=>  esc_html__('Subtotal', 'reza'),	 
	'noproducts'				=>  esc_html__('No products in the cart.', 'reza'),
	'relatedproducts'			=>  esc_html__('Related products', 'reza'),
	'callusfree'				=>  esc_html__('Call Us Free', 'reza'), 
 	'or'						=>  esc_html__('or', 'reza'),
	'myaccount'						=>  esc_html__('My Account', 'reza'),
	'real_name'					=>  esc_html__('Real Name', 'reza'),
	'website'					=>  esc_html__('Website', 'reza'),	 
	'phone'						=>  esc_html__('Phone', 'reza'),
	'phonenumber'						=>  esc_html__('Phone number', 'reza'),
	'contact_us'						=>  esc_html__('Contact us', 'reza'),
  	'skills'					=>  esc_html__('Skills', 'reza'),
	'removethisitem'			=>  esc_html__('Remove this item', 'reza'),
	'outofstock'			=>  esc_html__('Out of Stock', 'reza'),
	'favorite'			=>  esc_html__('Favorite', 'reza'),
	'noresults'						=>  esc_html__('یافت نشد', 'reza'),	
		'full_list'			=>  esc_html__('مشاهده لیست کامل', 'reza'),
	'category_more'			=>  esc_html__('دسته های بیشتر', 'reza'),
	'category_close'			=>  esc_html__('بستن', 'reza'),

	
	 
  	);
 	if($id =='array'){
		return $translation;
 	}else{
		return isset($translation[$id])?$translation[$id]:'';
 	}
}?>