--- checkout.module.orig 2008-08-06 15:00:46.000000000 +0200 +++ checkout.module 2008-08-06 15:00:54.000000000 +0200 @@ -248,10 +248,11 @@ if (!isset($regexp)) { $patterns = variable_get('checkout_edit_paths', "edit\nrevisions\nrevisions/*\noutline\nclassify"); - $regexp = '@^node/(\d+)/(?:'. preg_replace(array('/(\r\n?|\n)/', '/\\\\\*/'), array('|', '.*'), preg_quote($patterns, '@')) .')$@'; + // Remove possible language prefix before node/ to get nids from a path like 'en/node/138/edit'. + $regexp = '@^([^/]*/)?node/(\d+)/(?:'. preg_replace(array('/(\r\n?|\n)/', '/\\\\\*/'), array('|', '.*'), preg_quote($patterns, '@')) .')$@'; } if (preg_match($regexp, $path, $match)) { - return $match[1]; + return $match[2]; } return FALSE; }