=== modified file 'modules/locale/locale.module'
--- modules/locale/locale.module	2010-07-14 16:04:45 +0000
+++ modules/locale/locale.module	2010-07-14 16:05:32 +0000
@@ -580,6 +580,7 @@ function locale_block($op = 'list', $del
         'title'      => $language->native,
         'language'   => $language,
         'attributes' => array('class' => 'language-link'),
+        'query'      => drupal_query_string_encode($_GET, array('q')),
       );
     }
 

