? modules/contact.mod
Index: includes/bootstrap.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v
retrieving revision 1.206.2.11
diff -u -p -r1.206.2.11 bootstrap.inc
--- includes/bootstrap.inc	25 Feb 2009 13:49:54 -0000	1.206.2.11
+++ includes/bootstrap.inc	21 Apr 2009 13:50:08 -0000
@@ -142,6 +142,13 @@ define('LANGUAGE_LTR', 0);
 define('LANGUAGE_RTL', 1);
 
 /**
+ * Variable-name extension to specify translatable variables.
+ * If var.VARIABLE_TRANSLATABLE is set to true, the variable var is 
+ * translatable.
+ */
+define('VARIABLE_TRANSLATABLE','_translatable');
+
+/**
  * Start the timer with the specified name. If you start and stop
  * the same timer multiple times, the measured intervals will be
  * accumulated.
@@ -499,8 +506,19 @@ function variable_init($conf = array()) 
  */
 function variable_get($name, $default) {
   global $conf;
-
-  return isset($conf[$name]) ? $conf[$name] : $default;
+  $trans = $name.VARIABLE_TRANSLATABLE;
+  
+  if (!(isset($conf[$trans]) && $conf[$trans])) {
+    return  isset($conf[$name]) ? $conf[$name] : $default;
+  } 
+  else {
+    $cont = isset($conf[$name]) ? $conf[$name] : $default;
+    if (! is_string($cont)) {
+      return $cont;
+    }
+      return t($cont);
+    }  
+  }
 }
 
 /**
@@ -541,6 +559,27 @@ function variable_del($name) {
   unset($conf[$name]);
 }
 
+/**
+ * Sets the translatable-status of the given variable.
+ * 
+ * If $translatable is set to true, $name.VARIABLE_TRANSLATABLE is set to 
+ * true, otherwise it is deleted.
+ * @param $name
+ *   The name of the variable to set the translatable status for.
+ * @param $translatable
+ *   Wether the given variable is translatable or not.
+ * @see variable_get()
+ * @see variable_set()
+ */
+function variable_set_translatable($name, $translatable=true) {
+  $trans = $name.VARIABLE_TRANSLATABLE;
+  if ($translatable) {
+    variable_set($trans,true);
+  } 
+  else {
+    variable_del($trans);
+  }
+}
 
 /**
  * Retrieve the current page from the cache.
