? l10n_client-774794.patch
? l10n_client_i18n_textgroup_2.patch
Index: l10n_client.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/l10n_client/Attic/l10n_client.module,v
retrieving revision 1.22.2.1
diff -u -p -r1.22.2.1 l10n_client.module
--- l10n_client.module	14 Jul 2009 18:02:54 -0000	1.22.2.1
+++ l10n_client.module	18 Apr 2010 21:26:36 -0000
@@ -117,6 +117,31 @@ function l10n_client_init() {
 }
 
 /**
+ * Implementation of hook_user().
+ */
+function l10n_client_user($type, $edit, &$account, $category = NULL) {
+  if ($type == 'form' && $category == 'account') {
+    if ((variable_get('l10n_client_use_server', FALSE) && user_access('submit translations to localization server', $account))
+     || user_access('use on-page translation')) {
+      $form['l10n_client'] = array(
+        '#type' => 'fieldset',
+        '#title' => t('Localization client'),
+        '#weight' => 1,
+      );
+    }
+
+    if (user_access('use on-page translation')) {
+      $form['l10n_client']['l10n_client_enable'] = array(
+        '#type' => 'checkbox',
+        '#title' => t('Enable on-page translation'),
+        '#default_value' => !empty($edit['l10n_client_enable']) ? $edit['l10n_client_enable'] : FALSE,
+        '#description' => t('Use the localization client on the bottom of each page to edit localization data.'),
+      );
+    }
+  }
+}
+
+/**
  * Menu callback. Translation pages.
  * 
  * These pages just list strings so they can be added to the string list for
