

/**
 *
 * @copyright  2010-2016 izend.org
 * @version    18
 * @link       http://www.izend.org
 */

<?php
$aliases = array(
	array(
		'captcha'				=> 'captcha',
		'avatar'				=> 'avatar',
		'logo'					=> 'logo',
		'rssfeed'				=> 'rss',
		'paypalreturn'			=> 'paypal/return',
		'paypalcancel'			=> 'paypal/cancel',
		'sslverifyclient'		=> 'sslverifyclient',
		'saction'				=> 's',
	),
	'en' 	=> array(
		'install'				=> 'install',
		'homepage'				=> 'home',
		'home'					=> 'home',
		'contact'				=> 'contact',
		'user'					=> 'identification',
		'nobody'				=> 'disconnect',
		'account'				=> 'account',
		'password'				=> 'password',
		'newuser'				=> 'register',
		'search'				=> 'search',
		'suggest'				=> 'suggest',
		'download'				=> 'download',
		'donation'				=> 'donation',
		'admin'					=> 'manage',
		'adminuser'				=> 'manage/user',
		'page'					=> 'page',
		'editpage'				=> 'edit',
		'folder'				=> 'folder',
		'folderedit'			=> 'edit/folder',
		'story'					=> 'article',
		'storyedit'				=> 'edit/article',
		'book'					=> 'manual',
		'bookedit'				=> 'edit/manual',
		'newsletter'			=> 'newsletter',
		'newsletteredit'		=> 'edit/newsletter',
		'newslettersubscribe' 	=> 'newsletter/subscribe',
		'newsletterunsubscribe'	=> 'newsletter/unsubscribe',
		'traffic'				=> 'traffic',
		'thread'				=> 'thread',
		'threadedit'			=> 'edit/thread',
		'node'					=> 'node',
		'editnode'				=> 'edit/node',
		'pagecontent'			=> 'content',
		'pagevisit'				=> 'visit',
	),
	'fr' 	=> array(
		'install'				=> 'installation',
		'homepage'				=> 'accueil',
		'home'					=> 'accueil',
		'contact'				=> 'contact',
		'user'					=> 'identification',
		'nobody'				=> 'deconnexion',
		'account'				=> 'compte',
		'password'				=> 'mot-de-passe',
		'newuser'				=> 'inscription',
		'search'				=> 'recherche',
		'suggest'				=> 'suggestion',
		'download'				=> 'telechargement',
		'donation'				=> 'donation',
		'admin'					=> 'gestion',
		'adminuser'				=> 'gestion/utilisateur',
		'page'					=> 'page',
		'editpage'				=> 'edition',
		'folder'				=> 'dossier',
		'folderedit'			=> 'edit/dossier',
		'story'					=> 'article',
		'storyedit'				=> 'edition/article',
		'book'					=> 'manuel',
		'bookedit'				=> 'edition/manuel',
		'newsletter'			=> 'infolettre',
		'newsletteredit'		=> 'edition/infolettre',
		'newslettersubscribe' 	=> 'infolettre/abonnement',
		'newsletterunsubscribe'	=> 'infolettre/desabonnement',
		'traffic'				=> 'trafic',
		'thread'				=> 'fil',
		'threadedit'			=> 'edition/fil',
		'node'					=> 'noeud',
		'editnode'				=> 'edition/noeud',
		'pagecontent'			=> 'contenu',
		'pagevisit'				=> 'visite',
	),
);
?>
$aliases = array(
	array(
<?php foreach ($aliases[0] as $action => $path): ?>
<?php if (in_array($action, $features)): ?>
		'<?php echo $path; ?>' => '<?php echo $action; ?>',
<?php endif; ?>
<?php endforeach; ?>
	),
<?php foreach ($languages as $lang): ?>
	'<?php echo $lang; ?>' => array(
<?php foreach ($aliases[$lang] as $action => $path): ?>
<?php if (in_array($action, $features)): ?>
		'<?php echo $path; ?>' => '<?php echo $action; ?>',
<?php endif; ?>
<?php endforeach; ?>
	),
<?php endforeach; ?>
);

