--- project.module	Thu Mar 06 02:41:44 2008
+++ project_new.module	Fri Jun 06 16:18:23 2008
@@ -329,3 +329,4 @@
 
-    $items[] = array('path' => 'project',
+    $items[] = array(
+      'path' => 'project',
       'title' => t('Projects'),
@@ -335,3 +336,4 @@
 
-    $items[] = array('path' => 'project/autocomplete',
+    $items[] = array(
+      'path' => 'project/autocomplete',
       'title' => t('Autocomplete project'),
@@ -350,8 +352,12 @@
         if ($term->depth == 0) {
-          $items[] = array('path' => 'project/'. $term->name,
-                           'title' => $term->name,
-                           'access' => $access,
-                           'type' => MENU_NORMAL_ITEM,
-                           'weight' => $term->weight,
-                           'callback arguments' => array($term->name));
+          $name    = $$term->name;
+          $lname   = drupal_strtolower(drupal_substr($name, 0, 1)) . drupal_substr($name, 1);
+          $items[] = array(
+            'path' => 'project/'. $lname,
+            'title' => $term->name,
+            'access' => $access,
+            'type' => MENU_NORMAL_ITEM,
+            'weight' => $term->weight,
+            'callback arguments' => array($term->name),
+          );
           $j = 0;
@@ -359,10 +365,12 @@
           foreach ($term_methods as $sort_method) {
-            $items[] = array('path' => 'project/' . $term->name . '/'. $sort_method,
-                 'title' => t('Browse by !sort_method', array('!sort_method' => $sort_method)),
-                 'access' => $access,
-                 // It's a default task if a) sort method matches default, or b) default sort isn't
-                 // in the list of sort methods, and it's the first tab.
-                 'type' => (($sort_method == $default_sort || (($j == 0) && !in_array($default_sort, $term_methods))) ? MENU_DEFAULT_LOCAL_TASK : MENU_LOCAL_TASK),
-                 'weight' => ($sort_method == $default_sort) ? -10 : $j,
-                 'callback arguments' => array($term->name, $sort_method));
+            $items[] = array(
+              'path' => 'project/'. $lname .'/'. $sort_method,
+              'title' => t('Browse by !sort_method', array('!sort_method' => $sort_method)),
+              'access' => $access,
+              // It's a default task if a) sort method matches default, or b) default sort isn't
+              // in the list of sort methods, and it's the first tab.
+              'type' => (($sort_method == $default_sort || (($j == 0) && !in_array($default_sort, $term_methods))) ? MENU_DEFAULT_LOCAL_TASK : MENU_LOCAL_TASK),
+              'weight' => ($sort_method == $default_sort) ? -10 : $j,
+              'callback arguments' => array($term->name, $sort_method),
+            );
             $j++;
@@ -374,6 +382,18 @@
     // Developers
-    $items[] = array('path' => 'project/developers', 'title' => t('Developers'), 'callback' => 'project_developers', 'access' => $access, 'type' => MENU_CALLBACK);
+    $items[] = array(
+      'path' => 'project/developers',
+      'title' => t('Developers'),
+      'callback' => 'project_developers',
+      'access' => $access,
+      'type' => MENU_CALLBACK
+    );
 
     // CVS messages:
-    $items[] = array('path' => 'project/cvs', 'title' => t('CVS'), 'callback' => 'project_cvs', 'access' => $access, 'type' => MENU_CALLBACK);
+    $items[] = array(
+      'path' => 'project/cvs',
+      'title' => t('CVS'),
+      'callback' => 'project_cvs',
+      'access' => $access,
+      'type' => MENU_CALLBACK
+    );
 
