? advuser.replace_constant_with_t.patch Index: advuser.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/advuser/advuser.module,v retrieving revision 1.1 diff -b -u -F^f -r1.1 advuser.module --- advuser.module 4 Jun 2006 11:00:25 -0000 1.1 +++ advuser.module 28 Aug 2006 10:55:33 -0000 @@ -2,7 +2,6 @@ define('ADVUSER_DEFAULT_NEW_MAIL', "If you want to check and edit his account go to %uri.\n\n--\n%site"); define('ADVUSER_DEFAULT_NEW_ROLES', NULL); -define('ADVUSER_DEFAULT_NEW_SUBJECT', t('A new user (%username) has just registered on %site.')); define('ADVUSER_DEFAULT_NEW_NOTIFY', 0); define('ADVUSER_DEFAULT_PROFILE_FIELDS', NULL); @@ -679,7 +678,7 @@ function advuser_settings() { '#type' => 'textfield', '#title' => t('Mail subject'), '#description' => t('The subject of the mail that is going to be sent to the user. Placeholder variables: %username, %site.'), - '#default_value' => variable_get('advuser_new_subject', ADVUSER_DEFAULT_NEW_SUBJECT), + '#default_value' => variable_get('advuser_new_subject', t('A new user (%username) has just registered on %site.')), ); $form['advuser_mailonnew']['advuser_new_mail'] = array( @@ -751,7 +750,7 @@ function advuser_user_insert($edit, $use $from = variable_get("site_mail", ini_get("sendmail_from")); $body = variable_get('advuser_new_mail', ADVUSER_DEFAULT_NEW_MAIL); - $subject = variable_get('advuser_new_subject', ADVUSER_DEFAULT_NEW_SUBJECT); + $subject = variable_get('advuser_new_subject', t('A new user (%username) has just registered on %site.')); $variables = array( '%username' => $user->name,