Having the ability to customize the “choose and role” label

Created on 18 September 2024, 8 months ago

Problem/Motivation

Hello Mantainers
First of all, thanks for this module; I have been using it for a couple of years in a business site and now I am implementing it on a latest version D10.3.5.
I read that the module is in “Considered feature-complete”, but I would like to understand if there is a chance to customize the label “Choose role” because I noticed that some users get confused about the real meaning. In fact, the term “role” is an admin term and might confuse users.

On each role, which corresponds to the type of activity performed by the company, depends a type of content and automatic rules, and so I need those who sign up to understand exactly what they are doing.

For the moment I have solved it by adding a markup field with which I explain the meaning of what they are doing, but it would be more understandable and elegant for example a simple label like “Register as” or “Define your main activity”

I am very grateful if you can help me to get this done

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

2.0

Component

User interface

Created by

🇮🇹Italy senzaesclusiva

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @senzaesclusiva
  • 🇵🇱Poland lamp5 Rzeszow

    You can do this using hook form alter.

  • 🇮🇹Italy senzaesclusiva

    Ah, okay, but does it also work with the fieldset title?
    I will try to read up on it, I am not very expert about this.
    Thank you very much

  • Status changed to Closed: won't fix 3 months ago
  • 🇵🇱Poland lamp5 Rzeszow
  • 🇩🇰Denmark ressa Copenhagen

    I tried settings.php string overrides and it worked well (remember to clear caches):

    $settings['locale_custom_strings_en'][''] = [
      'Choose a role' => 'Define your main activity'
    ];
    

    From settings.php:

    /**
     * String overrides:
     *
     * To override specific strings on your site with or without enabling the Locale
     * module, add an entry to this list. This functionality allows you to change
     * a small number of your site's default English language interface strings.
     *
     * Remove the leading hash signs to enable.
     *
     * The "en" part of the variable name, is dynamic and can be any langcode of
     * any added language. (eg locale_custom_strings_de for german).
     */
    # $settings['locale_custom_strings_en'][''] = [
    #   'Home' => 'Front page',
    #   '@count min' => '@count minutes',
    # ];
    
  • 🇮🇹Italy senzaesclusiva

    Oh...thank you very much,
    used to using the ‘String overrides’ module when needed for various changes, I had not noticed that small changes could be set directly in the settings.php file.
    My fault...
    Thx, much appreciated

  • 🇩🇰Denmark ressa Copenhagen

    You're welcome, I was also positively surprised when I discovered how many strings can be changed with that method -- though there are some you can't.

Production build 0.71.5 2024