? 363336_english_only.patch
Index: porterstemmer.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/porterstemmer/porterstemmer.module,v
retrieving revision 1.1
diff -u -p -r1.1 porterstemmer.module
--- porterstemmer.module	17 Dec 2005 22:43:02 -0000	1.1
+++ porterstemmer.module	27 Feb 2009 16:52:48 -0000
@@ -11,20 +11,23 @@
 * Implementation of hook_search_preprocess
 */
 function porterstemmer_search_preprocess(&$text) {
-  // Split words from noise and remove apostrophes
-  $words = preg_split('/([^a-zA-Z]+)/', str_replace("'", '', $text), -1, PREG_SPLIT_DELIM_CAPTURE);
-
-  // Process each word
-  $odd = true;
-  foreach ($words as $k => $word) {
-    if ($odd) {
-      $words[$k] = Stem($word);
+  global $language;
+  if (substr($language->language,0,2) == "en") { 
+    // Split words from noise and remove apostrophes
+    $words = preg_split('/([^a-zA-Z]+)/', str_replace("'", '', $text), -1, PREG_SPLIT_DELIM_CAPTURE);
+
+    // Process each word
+    $odd = true;
+    foreach ($words as $k => $word) {
+      if ($odd) {
+        $words[$k] = Stem($word);
+      }
+      $odd = !$odd;
     }
-    $odd = !$odd;
-  }
 
-  // Put it all back together
-  return implode('', $words);
+    // Put it all back together
+    return implode('', $words);
+  }
 }
 
 /**
