add P_sprintf
This commit is contained in:
parent
b9309b1822
commit
c1175070a2
|
@ -13,6 +13,14 @@ function P_ngettext($plugin, $singular, $plural, $number) {
|
||||||
return _dngettext(PLuginHost::object_to_domain($plugin), $singular, $plural, $number);
|
return _dngettext(PLuginHost::object_to_domain($plugin), $singular, $plural, $number);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function P_sprintf() {
|
||||||
|
$args = func_get_args();
|
||||||
|
$plugin = array_shift($args);
|
||||||
|
$msgid = array_shift($args);
|
||||||
|
|
||||||
|
return vsprintf(P__($plugin, $msgid), $args);
|
||||||
|
}
|
||||||
|
|
||||||
class PluginHost {
|
class PluginHost {
|
||||||
private $pdo;
|
private $pdo;
|
||||||
private $hooks = array();
|
private $hooks = array();
|
||||||
|
|
Loading…
Reference in New Issue