summaryrefslogtreecommitdiffstats
path: root/lib/gettext.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gettext.php')
-rw-r--r--lib/gettext.php14
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;
+
+} // __
+
?>