# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
--- /Users/simon/Sites/gratis_immo.ch/sites/all/modules/terms_of_use_old/terms_of_use.module
+++ /Users/simon/Sites/gratis_immo.ch/sites/all/modules/terms_of_use/terms_of_use.module
@@ -77,13 +77,13 @@
   $form['terms_of_use_form']['terms_of_use_fieldset_name'] = array(
     '#type' => 'textfield',
     '#title' => t('Label for the fieldset'),
-    '#default_value' => variable_get('terms_of_use_fieldset_name', t('Terms of Use')),
+    '#default_value' => t(variable_get('terms_of_use_fieldset_name','Terms of Use')),
     '#description' => t('The text for the Terms of Use and the [x] checkbox are contained in a fieldset. Type here the title for that fieldset.'),
   );
   $form['terms_of_use_form']['terms_of_use_checkbox_label'] = array(
     '#type' => 'textfield',
     '#title' => t('Label for the ckeckbox'),
-    '#default_value' => variable_get('terms_of_use_checkbox_label', t('I agree with these terms.')),
+    '#default_value' => t(variable_get('terms_of_use_checkbox_label', 'I agree with these terms.')),
     '#description' => t('Type here something like "I agree with these terms." or "I CERTIFY THAT I AM OVER THE AGE OF 18 YEARS OLD.", without quotes. You can use the token @link to insert a link to the Terms in this label. For example, the label can be: "I agree with the @link.", without quotes. You may want to link to the Terms if you prefer not to show the full text of the Terms in the registration form. If you use the token, the Terms will not be shown.'),
   );
 
@@ -132,7 +132,7 @@
   // Adding the fieldset.
   $form['terms_of_use'] = array(
     '#type' => 'fieldset',
-    '#title' => check_plain(variable_get('terms_of_use_fieldset_name', t('Terms of Use'))),
+    '#title' => check_plain(t(variable_get('terms_of_use_fieldset_name', 'Terms of Use'))),
     '#weight' => 10,
   );
 
@@ -150,7 +150,7 @@
   // Will we show the full text of the Terms or only provide a link to the Terms.
   // Reading the checkbox label to find out.
   $show_terms = TRUE;
-  $checkbox_label = check_plain(variable_get('terms_of_use_checkbox_label', t('I agree with these terms.')));
+  $checkbox_label = check_plain(t(variable_get('terms_of_use_checkbox_label', 'I agree with these terms.')));
   if (strpos($checkbox_label, '@link') !== FALSE) {
     $checkbox_label = str_replace('@link', l(check_plain($node->title), 'node/'. $node->nid), $checkbox_label);
     $show_terms = FALSE;
@@ -181,7 +181,7 @@
 function _terms_of_use_validate_checkbox($form, &$form_state) {
   $value = $form_state['values']['I_agree'];
   if ($value == 0) {
-    form_set_error('I_agree', t('You must agree with the !terms to get an account.', array('!terms' => variable_get('terms_of_use_fieldset_name', t('Terms of Use')))));
+    form_set_error('I_agree', t('You must agree with the !terms to get an account.', array('!terms' => t(variable_get('terms_of_use_fieldset_name', 'Terms of Use')))));
   }
 }
 
