From 6eac7541290086509cf1531a48ab2734ac48081a Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 13 May 2007 00:32:57 +0000 Subject: added in the playlist bar, and the auto-loading of a tmp playlist per session --- lib/gettext.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lib/gettext.php') diff --git a/lib/gettext.php b/lib/gettext.php index ed929241..0052a247 100644 --- a/lib/gettext.php +++ b/lib/gettext.php @@ -49,5 +49,19 @@ function load_gettext() { } // load_gettext +/** + * __ + * This function does the same as _ on the supplied + * string, but also does a str_replace on the supplied + * vars + */ +function __($string,$subject,$replace) { + + $translated = _($string); + $result = str_replace($subject,$replace,$translated); + return $result; + +} // __ + ?> -- cgit