Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.537.2.22
diff -u -p -r1.537.2.22 common.inc
--- includes/common.inc	14 Mar 2007 07:55:48 -0000	1.537.2.22
+++ includes/common.inc	25 Mar 2007 15:24:12 -0000
@@ -618,11 +618,20 @@ function locale_initialize() {
  * @param $args
  *   An associative array of replacements to make after translation. Incidences
  *   of any key in this array are replaced with the corresponding value.
+ * @param $cache
+ *  A boolean value indicating whether or not this string should be stored into
+ *  the message database for user customization and searching
  * @return
  *   The translated string.
  */
-function t($string, $args = 0) {
+function t($string, $args = 0, $cache = FALSE) {
   global $locale;
+  
+  // is caching required?
+  if( $cache ){
+    $string = dyntext_cache($string);
+  }
+  
   if (function_exists('locale') && $locale != 'en') {
     $string = locale($string);
   }
