/**
 * For javascript translation markup.
 * 
 * If used in an old page, you'll have to make sure the makeConnectionObject
 * is required_once and also you will need to require this dependencies file 
 * inside of the head of the page.
 * 
 *	<head>
 *		<?php
 *			require_once(PATH_TO_ROOT . "/admin/pages/classes/jsTranslationMarkupDependencies.php");
 *		?>
 * </head>
 * 
 * All dependencies are taken care of automagically if you use an htmlView
 */
function __()
{
	args = arguments;
	
	var gt = new Gettext({ 'domain' : currentLocale() });
	args[0] = gt.gettext(args[0]);
	
	if (overrideTranslation())
	{
		args[0] = "T[" + args[0] + "]";
	}

	return $.sprintf.apply(null, args);
}