I am trying to customsing the recruiter module. How can I change the text on the registration pages?

For example:
*****************
Here you can register as applicant or recruiter.
Register as applicant
Register as recruiter

******************************************
You are about to sign up as applicant.
Sign up as recruiter instead? Click here!

******************************************
You are about to sign up as recruiter.
Sign up as applicant instead? Click here!

Does anyone know?

Comments

gusCallado’s picture

Hi,

You must login as administrator and go to Configuration >> Regional and language >> Translate interface >> Translate and filter by String contains.

Gus Callado

darol100’s picture

Status: Active » Fixed

To made this modification you will have to hack this modules.
I'm providing the path of the module and the code where you have to modify.

Path: /profiles/recruiter/modules/recruiter_features/recruiter_register/recruiter_register.module
Code:

/**
 * Implements hook_block_view().
 */
function recruiter_register_block_view($delta) {
  switch ($delta) {
    case 'applicant_info':
      return array(
        'subject' => t('You are about to sign up as @applicant.', array('@applicant' => t('applicant'))),
        'content' => array(
          'body' => array(
            '#markup' => t('Sign up as @recruiter instead? Click <a href="!url">here</a>!', array('!url' => url('user/register/recruiter'), '@recruiter' => t('recruiter'))),
          ),
        ),
      );
    case 'recruiter_info':
      return array(
        'subject' => t('You are about to sign up as @recruiter.', array('@recruiter' => t('recruiter'))),
        'content' => array(
          'body' => array(
            '#markup' => t('Sign up as @applicant instead? Click <a href="!url">here</a>!', array('!url' => url('user/register'), '@applicant' => t('applicant'))),
          ),
        ),
      );
  }
}

Path: /profiles/recruiter/modules/recruiter_features/recruiter_register/recruiter-register-box.tpl.php

Code:

<?php

/**
 * @file
 * Default theme implementation for the recruiter register box.
 *
 * @ingroup themeable
 */

$t_options = array(
  'context' => 'recruiter_register',
);
?>
<div class="register-box">
  <h2><?php print t('No account yet?', array(), $t_options); ?></h2>
  <div class="register-text"><?php print t('Here you can register as applicant or recruiter.'); ?></div>
  <div class="register-box-links">
    <div><?php print l(t('Register as applicant', array(), $t_options), 'user/register'); ?></div>
    <div><?php print l(t('Register as recruiter', array(), $t_options), 'user/register/recruiter'); ?></div>
  </div>
</div>


Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.