Index: l10n_community/translate.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/l10n_server/l10n_community/Attic/translate.inc,v
retrieving revision 1.1.2.7.2.25
diff -u -r1.1.2.7.2.25 translate.inc
--- l10n_community/translate.inc	6 Nov 2009 16:00:57 -0000	1.1.2.7.2.25
+++ l10n_community/translate.inc	8 Nov 2009 20:04:25 -0000
@@ -65,16 +65,16 @@
   $projects = l10n_community_get_projects();
 
   $translation_options = array(
-    L10N_STATUS_ALL            => t('<Any>'),
+    L10N_STATUS_ALL            => '<'. t('Any') .'>',
     L10N_STATUS_UNTRANSLATED   => t('Untranslated'),
     L10N_STATUS_TRANSLATED     => t('Translated'),
   );
   $suggestion_options = array(
-    L10N_STATUS_ALL            => t('<Any>'),
+    L10N_STATUS_ALL            => '<'. t('Any') .'>',
     L10N_STATUS_NO_SUGGESTION  => t('Has no suggestion'),
     L10N_STATUS_HAS_SUGGESTION => t('Has suggestion'),
   );
-  
+
   $form['project'] = array(
     '#title' => t('Project'),
     '#default_value' => isset($filters['project']) ? $filters['project']->title : '',
@@ -636,7 +636,7 @@
       // Release restriction.
       $where_args[] = $release;
       $where[] = 'l.rid = %d';
-    }  
+    }
     elseif ($project) {
       $where[] = "l.pid = %d";
       $where_args[] = $project->pid;
@@ -666,7 +666,7 @@
     // NULL in this case, as we are not allowing NULL there and only saving an empty
     // translation if there are suggestions but no translation yet.
     $where[] = "(t.translation is NULL OR t.translation = '')";
-  } 
+  }
   elseif ($filters['status'] & L10N_STATUS_TRANSLATED) {
     $where[] = "t.translation != ''";
   }
@@ -732,10 +732,25 @@
     'context' => isset($params['context']) ? (string) $params['context'] : 'all',
     'limit' => (isset($params['limit']) && in_array($params['limit'], array(5, 10, 20, 30))) ? (int) $params['limit'] : 10,
   );
-  
-  // The project can be a dropdown or text field depending on number of 
-  // projects. So we need to sanitize its value. 
+
+  // The project can be a dropdown or text field depending on number of
+  // projects. So we need to sanitize its value.
   if (isset($params['project'])) {
+      drupal_add_js(array(
+        'l10n_server_project' => $params['project'],
+        'l10n_server_status' => $filter['status'],
+        'l10n_server_release' => isset($_GET['release']) ? $_GET['release'] :'',
+        'l10n_server_limit' => $filter['limit'],
+        'l10n_server_author' => isset($filter['author']) ? $filter['author'] : '',
+        'l10n_server_context' => $filter['context'],
+        'l10n_server_search' => $filter['search'],
+        'l10n_server_browse' => t('Browse'),
+        'l10n_server_translate' => t('Translate'),
+        'l10n_server_export' => t('Export'),
+        'l10n_server_moderate' => t('Moderate')),
+        'setting');
+      $path = drupal_get_path('module', 'l10n_community'). '/l10n_community_helper.js';
+      drupal_add_js($path, 'module', 'footer');
     // Try to load project by uri or title, but give URI priority. URI is used
     // to shorten the URL and have simple redirects. Title is used if the
     // filter form was submitted, but that one is simplified to the URI on
Index: l10n_community/l10n_community_helper.js
===================================================================
RCS file: l10n_community/l10n_community_helper.js
diff -N l10n_community/l10n_community_helper.js
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ l10n_community/l10n_community_helper.js	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,34 @@
+// $Id:$
+// add to the url the all queries example.org?translate/languages/de/edit?project=comment_notify&status=0&release=6&limit=10&author=admin&context=all&search=Any
+
+var projectbrowse = Drupal.settings["l10n_server_browse"];
+var projecttranslate = Drupal.settings["l10n_server_translate"];
+var projectexport = Drupal.settings["l10n_server_export"];
+var projectmoderate = Drupal.settings["l10n_server_moderate"];
+
+var getproject = Drupal.settings["l10n_server_project"];
+var getstatus = Drupal.settings["l10n_server_status"];
+var getrelease = Drupal.settings["l10n_server_release"];
+var getlimit = Drupal.settings["l10n_server_limit"];
+var getauthor = Drupal.settings["l10n_server_author"];
+var getcontext = Drupal.settings["l10n_server_context"];
+var getsearch = Drupal.settings["l10n_server_search"];
+$("ul.tabs li a").each( function() {
+  var linktext = $(this).text();
+  var hrefbefore = $(this).attr("href");
+  var hrefafter = hrefbefore + "?project=" + getproject + "&status=" + getstatus + "&release=" + getrelease + "&limit=" + getlimit + "&author=" + getauthor + "&context=" + getcontext + "&search=" + getsearch;
+  if(linktext == projectbrowse) {
+    $(this).attr("href", hrefafter);
+  }
+  else if(linktext == projecttranslate) {
+    $(this).attr("href", hrefafter);
+  }
+  else if(linktext == projectmoderate) {
+	$(this).attr("href", hrefafter);
+  }
+  else if(linktext == projectexport) {
+	  hrefafter = "?project=" + getproject;
+    $(this).attr("href", hrefbefore + hrefafter);
+  }
+});
+
