<?php defined('SYSPATH') OR die('No direct access allowed.');

class Html extends Kohana_Html {

	/**
	 * Create HTML link anchors with language.
	 *
	 * @param   string  URL or URI string
	 * @param   string  link text
	 * @param   array   HTML anchor attributes
	 * @param   string  non-default protocol, eg: https
	 * @param   boolean option to escape the title that is output
	 * @return  string
	 */
	public static function lanchor($uri, $title = NULL, $attributes = NULL, $protocol = NULL, $escape_title = FALSE)
	{
		$value = gen::lang($title);
		//$value = I18n::get($title);
		return parent::anchor($uri, $value, $attributes, $protocol, $escape_title);
	}
}
