<?php
// $Id: /cvsroot/tikiwiki/tiki/lib/wiki-plugins/wikiplugin_trackerlist.php,v 1.40.2.12 2008-03-22 12:13:54 sylvieg Exp $

function wikiplugin_tr_help() {
	$help = tra("Translate a string");
	$help .= "~np~{TR()}string{TR}~/np~";
	return $help;
}

function wikiplugin_tr_info() {
	return array(
		'name' => tra('Translate'),
		'description' => tra('Translate a string using Tikiwiki translation table.'),
		'prefs' => array( 'feature_multilingual', 'wikiplugin_tr' ),
		'body' => tra('string'),
		'params' => array(
		),
	);
}

function wikiplugin_tr($data) {
	$return = tra($data);
	return $return == '_HOMEPAGE_CONTENT_' ? tra($data, 'en') : $return;
}

<?php
// $Id: /cvsroot/tikiwiki/tiki/lib/wiki-plugins/wikiplugin_trackerlist.php,v 1.40.2.12 2008-03-22 12:13:54 sylvieg Exp $

function wikiplugin_tr_help() {
	$help = tra("Translate a string");
	$help .= "~np~{TR()}string{TR}~/np~";
	return $help;
}

function wikiplugin_tr_info() {
	return array(
		'name' => tra('Translate'),
		'description' => tra('Translate a string using Tikiwiki translation table.'),
		'prefs' => array( 'wikiplugin_tr' ),
		'body' => tra('string'),
		'params' => array(
		),
	);
}

function wikiplugin_tr($data) {
	$return = tra($data);
	return $return == '_HOMEPAGE_CONTENT_' ? tra($data, 'en') : $return;
}

Rollback 17710. Use of TR by default is necessary for now because default home page message uses it. A better solution is welcome.
[FIX] Rollback 17710. Use of TR by default is necessary for now because default home page message uses it. A better solution is welcome.

git-svn-id: 08a866106b41c57cec985b5deddde5835bf030d4@17711 b456876b-0849-0410-b77d-98878d47e9d5
