Index: libraries.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/libraries/libraries.module,v
retrieving revision 1.11
diff -u -p -r1.11 libraries.module
--- libraries.module	3 Nov 2010 22:22:42 -0000	1.11
+++ libraries.module	4 Nov 2010 01:13:01 -0000
@@ -185,6 +185,7 @@ function libraries_info($library = NULL)
     // Gather information from hook_libraries_info().
     foreach (module_implements('libraries_info') as $module) {
       foreach (module_invoke($module, 'libraries_info') as $name => $properties) {
+        $properties['machine_name'] = $name;
         $properties['module'] = $module;
         $libraries[$name] = $properties;
       }
@@ -200,6 +201,7 @@ function libraries_info($library = NULL)
     // Provide defaults.
     foreach ($libraries as $name => &$properties) {
       $properties += array(
+        'machine_name' => $name,
         'name' => $name,
         'vendor url' => '',
         'download url' => '',
@@ -259,7 +261,7 @@ function libraries_detect($libraries) {
  */
 function libraries_detect_library(&$library) {
   $library['installed'] = FALSE;
-  $name = $library['name'];
+  $name = $library['machine_name'];
 
   // Check whether the library exists.
   if (!isset($library['library path'])) {
@@ -267,7 +269,9 @@ function libraries_detect_library(&$libr
   }
   if (!file_exists($library['library path'])) {
     $library['error'] = 'not found';
-    $library['error message'] = t('%library could not be found.', array('%library' => $library['name']));
+    $library['error message'] = t('%library could not be found.', array(
+      '%library' => $library['name'],
+    ));
     return;
   }
 
@@ -284,7 +288,9 @@ function libraries_detect_library(&$libr
     }
     if (empty($library['version'])) {
       $library['error'] = 'not detected';
-      $library['error message'] = t('The version of %library could not be detected.', array('%library' => $library['name']));
+      $library['error message'] = t('The version of %library could not be detected.', array(
+        '%library' => $library['name'],
+      ));
       return;
     }
   }
