Problem/Motivation

On the Multiple Registration Settings, you can "Enable Add user buttons on People page" but that button labels cannot be localized.

Proposed resolution

In multiple_registration.module file, update the multiple_registration_views_pre_view() function:

before (line 556):

    foreach ($available_roles as $role) {
      $result[] = '<a class="button button-action button--primary button--small" href="' . $role["url"] . '">Add new ' . $role["role_name"] . '</a>';
    }

after:

    foreach ($available_roles as $role) {
      $link_label = t('Add new @role', ['@role' => $role['role_name']], ['context' => 'multiple_registration']);
      $result[] = '<a class="button button-action button--primary button--small" href="' . $role["url"] . '">' . $link_label . '</a>';
    }

Remaining tasks

MR is coming.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

phily created an issue. See original summary.

phily’s picture

Status: Active » Needs review
orkutmuratyilmaz’s picture

Status: Needs review » Reviewed & tested by the community

The MR 21 works:)

alex liannoy made their first commit to this issue’s fork.

alex liannoy’s picture

Status: Reviewed & tested by the community » Fixed

Thank you for the MR and review.
Merged, closing the issue.

orkutmuratyilmaz’s picture

Thanks for the merge:)

Status: Fixed » Closed (fixed)

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