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.
Issue fork multiple_registration-3525499
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
Comment #3
philyComment #4
orkutmuratyilmazThe MR 21 works:)
Comment #6
alex liannoy commentedThank you for the MR and review.
Merged, closing the issue.
Comment #7
orkutmuratyilmazThanks for the merge:)