diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-05-13 00:32:57 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-05-13 00:32:57 +0000 |
commit | 6eac7541290086509cf1531a48ab2734ac48081a (patch) | |
tree | a4e1350fdcf765fb8a9d85ff0c513a296fdec946 /lib/gettext.php | |
parent | 2939f419e15589ab9fb73c6fd197e577238c6677 (diff) | |
download | ampache-6eac7541290086509cf1531a48ab2734ac48081a.tar.gz ampache-6eac7541290086509cf1531a48ab2734ac48081a.tar.bz2 ampache-6eac7541290086509cf1531a48ab2734ac48081a.zip |
added in the playlist bar, and the auto-loading of a tmp playlist per session
Diffstat (limited to 'lib/gettext.php')
-rw-r--r-- | lib/gettext.php | 14 |
1 files changed, 14 insertions, 0 deletions
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; + +} // __ + ?> |