Source code for file /joomla/template/module/function/Translate.php
Documentation is available at Translate.php
* @version $Id: Translate.php 6472 2007-02-03 10:47:26Z pasamio $
* @package Joomla.Framework
* @copyright Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
// Check to ensure this file is within the rest of the framework
* JTemplate Translate function
* @package Joomla.Framework
* @param array parameters of the function (= attributes of the tag)
* @param string content of the tag
* @return string content to insert into the template
* Function modifed for Joomla!
function call( $params, $content )
$escape = isset
( $params['escape'] ) ?
$params['escape'] :
'';
// just use the Joomla translation tool
$text =
JText::_( $params['key'] );
if ($escape ==
'yes' ||
$escape ==
'true') {