Index: hierarchical_select.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/hierarchical_select/hierarchical_select.module,v
retrieving revision 1.137.2.6
diff -u -u -p -r1.137.2.6 hierarchical_select.module
--- hierarchical_select.module	30 Nov 2008 01:56:07 -0000	1.137.2.6
+++ hierarchical_select.module	10 Jun 2009 01:47:46 -0000
@@ -265,6 +266,10 @@ function hierarchical_select_json() {
   // form in a subform_element in a form, then it is necessary.
   $form_id = $_POST['form_id'] = $storage['parameters'][0];
 
+  if (module_exists('i18n')) {
+    i18n_selection_mode($storage['i18n']['mode'], $storage['i18n']['params']);
+  }
+
   if (HS_DEVELOPER_MODE) {
     _hierarchical_select_log("form_id: $form_id");
     _hierarchical_select_log("hs_form_build_id: $hs_form_build_id");
@@ -634,6 +640,12 @@ function hierarchical_select_after_build
       // … determine which part of $form should be rendered.
       '#names'     => $names,
     );
+    if (module_exists('i18n')) {
+      $storage['i18n'] = array(
+        'mode' => i18n_selection_mode(),
+        'params' => i18n_selection_mode('params'),
+      );
+    }
 
     // Store the information needed for dynamic form updates in the cache, so
     // we can retrieve this in our JSON callbacks (to be able to rebuild and
