--- pathauto.inc	2008-01-27 22:27:29.000000000 +0100
+++ ../pathauto2/pathauto.inc	2008-02-06 10:44:47.000000000 +0100
@@ -204,7 +204,7 @@ function pathauto_cleanstring($string, $
  * @return
  *   The alias that was created
  */
-function pathauto_create_alias($module, $op, $placeholders, $src, $entity_id, $type = NULL) {
+function pathauto_create_alias($module, $op, $placeholders, $src, $entity_id, $type = NULL, $language = NULL) {
   if (($op != 'bulkupdate') and variable_get('pathauto_verbose', FALSE) && user_access('notify of path changes')) {
     $verbose = TRUE;
   } 
@@ -215,7 +215,12 @@ function pathauto_create_alias($module, 
   // Retrieve and apply the pattern for this content type
   $pattern = '';
   if ($type) {
-    $pattern = variable_get('pathauto_'. $module .'_'. $type .'_pattern', '');
+	if(isset($language) && strlen($language)){
+		$pattern = variable_get('pathauto_'. $module .'_'. $type .'_'. $language .'_pattern', '');
+	}
+	else{
+    	$pattern = variable_get('pathauto_'. $module .'_'. $type .'_pattern', '');
+	}
   }
   if (!trim($pattern)) {
     $pattern = variable_get('pathauto_'. $module .'_pattern', '');
