web/wp-content/plugins/exec-php/includes/l10n.php
author hurons@caf4f556-3d62-0410-8435-a86758001935
Mon, 01 Feb 2010 09:51:57 +0000
branchwordpress
changeset 123 561aa6d282f6
permissions -rw-r--r--
pre production version : ****************************** Template evolution : - css ( so much things) - js ( new navigation tools ...) - lib for php ZIp - function.php (for download LDT and other litle function) - page (header, home, footer, single, search, searchform, post ...) ****************************** New plug in : - wp touch - wp explorer - TextCutter - ultimate-google-analytics - nice titles ****************************** Plug in customization : - related-posts-by-category - posts-of-current-category - order-categories - event-calendar - translation wp explorer - exec-php ****************************** Road map for next version : - cleaning php code put template function to new plugin - cleaning Css code - re organize Js code - all new correction ask

<?php

if (!class_exists('ExecPhp_L10n')) :

if (!function_exists('translate')) :
// downward compatibility for older WP installations
function translate($text, $domain)
{
	global $l10n;

	if (isset($l10n[$domain])) {
		return $l10n[$domain]->translate($text);
	} else {
		return $text;
	}
}
endif;

if (!function_exists('translate_sprintf')) :
function translate_sprintf($text, $domain = 'default')
{
	if (func_num_args() <= 2)
		return translate($text, $domain);
	$args = func_get_args();
	array_shift($args);
	array_shift($args);
	array_unshift($args, translate($text, $domain));
	return call_user_func_array('sprintf', $args);
}
endif;

if (!function_exists('__s')) :
function __s($text, $domain = 'default')
{
	$args = func_get_args();
	return call_user_func_array('translate_sprintf', $args);
}
endif;

if (!function_exists('_es')) :
function _es($text, $domain = 'default')
{
	$args = func_get_args();
	echo call_user_func_array('translate_sprintf', $args);
}
endif;

if (!function_exists('escape_dquote')) :
function escape_dquote($text)
{
	return str_replace('"', '\"', $text);
}
endif;

class ExecPhp_L10n
{
}
endif;

?>