Index: potx.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/potx/Attic/potx.inc,v
retrieving revision 1.1.2.17.2.7.2.4
diff -u -r1.1.2.17.2.7.2.4 potx.inc
--- potx.inc	28 Dec 2007 22:44:57 -0000	1.1.2.17.2.7.2.4
+++ potx.inc	1 Jan 2008 18:45:22 -0000
@@ -196,6 +196,9 @@
   if ($basename == 'common.inc') {
     _potx_add_format_interval_strings($file_name, $save_callback);
   }
+  if ($basename == 'system.module') {
+    _potx_add_default_region_names($file_name, $save_callback, $api_version);
+  }
 }
 
 /**
@@ -947,6 +950,30 @@
 }
 
 /**
+ * Add default theme region names, which cannot be extracted otherwise.
+ * These default names are defined in system.module
+ *
+ * @param $file
+ *   Name of the file parsed.
+ * @param $save_callback
+ *   Callback function used to save strings.
+ * @param $api_version
+ *   Drupal API version to work with.
+ */
+function _potx_add_default_region_names($file, $save_callback, $api_version = POTX_API_6) {
+  $regions = array(
+    'left' => 'Left sidebar',
+    'right' => 'Right sidebar',
+    'content' => 'Content',
+    'header' => 'Header',
+    'footer' => 'Footer',
+  );
+  foreach($regions as $region) {
+    $save_callback($region, $file);
+  }
+}
+
+/**
  * Parse an .info file and add relevant strings to the list.
  *
  * @param $file_path
@@ -973,6 +1000,13 @@
       $save_callback($info[$key], $file_name);
     }
   }
+  
+  // Add regions names from themes
+  if (isset($info['regions']) && is_array($info['regions'])) {
+    foreach($info['regions'] as $region => $region_name) {
+      $save_callback($region_name, $file_name);
+    }
+  }
 }
 
 /**
