Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-43205

Custom user profile menu multi-language improvements so selection not set to a user's preferred language

XMLWordPrintable

    • MOODLE_26_STABLE
    • MOODLE_29_STABLE
    • wip-MDL-43205-master
    • Hide

      Checkout dev branch install & configure

      Steps Expected Outcome
      1. Enable Multi-Language content filter (if not already enabled):
        Settings ► Site administration ► Plugins ► Filters ► Manage filters
        Find the filter in the listing and select On from the Active? drop-down and Content and headings from the Apply to drop-down.
      2. Install Spanish language pack (if not already installed):
        Settings ► Site administration ► Language ► Language packs
        Select Español - Internacional (es) from the List of available languages and click Install selected language pack button.
      3. Enable language menu (if not already enabled)
        Settings ► Site administration ► Language ► Language settings
        Check checkbox for Display language menu, set Languages on language menu to blank/empty and click Save changes.
      4. Create a multi-lang Moodle profile field menu-of-choices:
        Settings ► Site administration ► Users ► Accounts ► User profile fields
        Select Dropdown menu from the Create a new profile field drop-down.
      5. Enter the following settings for the profile field:
        Short name: gender
        Name: <span class="multilang" lang="en">Gender</span><span class="multilang" lang="es">Género</span><span class="multilang" lang="pt_br">Gênero</span>
        Description: Gender Description
        Is this field required? Yes
        Menu options: <span class="multilang" lang="en">Female</span><span class="multilang" lang="es">Femenino</span>
        <span class="multilang" lang="en">Male</span><span class="multilang" lang="es">Masculino</span>
        Default value: <span class="multilang" lang="en">Female</span><span class="multilang" lang="es">Femenino</span>
      6. Navigate to View profile page (click your username at top-right corner of page)
      7. Click menu: Settings ► Site administration ►Edit profile
      8. Select Male from the Gender drop-down and click Update profile button
      9. Create a new test user: Settings ► Site administration ► Users ► Accounts ► Add a new user
      10. Set all required fields for the new test user and select Español - Internacional (es) from the Preferred language drop-down, Male from the Gender drop-down and click Create user button.
      11. Login as the test user.
      12. Navigate to View profile (Ver perfil in Spanish) page (click your username at top-right corner of page)
      13. Navigate to Edit profile (Editar información in Spanish) page.
      14. Select Femenino from the Género drop-down menu and click Actualizar información personal button.
      15. Select English (en) from the language drop-down menu near the top-left corner of the page (language menu location maybe theme specific)
      (6) Page should display user profile settings with
      Gender: Female
      (7) Gender drop-down should have Female initially selected (default)
      (8) After clicking Update profile, the view profile page should be displayed with
      Gender: Male
      (9) Gender drop-down should have Female initially selected (default)
      (12) Page should display user profile settings with
      Género: Masculino
      (13) Género drop-down should have Masculino selected.
      (14) After clicking Actualizar información personal, the view profile (Ver perfil) page should be displayed with
      Género: Femenino
      (15) The view profile page should now be displayed in English with
      Gender: Female
      Show
      Checkout dev branch install & configure Steps Expected Outcome Enable Multi-Language content filter (if not already enabled): Settings ► Site administration ► Plugins ► Filters ► Manage filters Find the filter in the listing and select On from the Active? drop-down and Content and headings from the Apply to drop-down. Install Spanish language pack (if not already installed): Settings ► Site administration ► Language ► Language packs Select Español - Internacional (es) from the List of available languages and click Install selected language pack button. Enable language menu (if not already enabled) Settings ► Site administration ► Language ► Language settings Check checkbox for Display language menu , set Languages on language menu to blank/empty and click Save changes . Create a multi-lang Moodle profile field menu-of-choices: Settings ► Site administration ► Users ► Accounts ► User profile fields Select Dropdown menu from the Create a new profile field drop-down. Enter the following settings for the profile field: Short name: gender Name: <span class="multilang" lang="en">Gender</span><span class="multilang" lang="es">Género</span><span class="multilang" lang="pt_br">Gênero</span> Description: Gender Description Is this field required? Yes Menu options: <span class="multilang" lang="en">Female</span><span class="multilang" lang="es">Femenino</span> <span class="multilang" lang="en">Male</span><span class="multilang" lang="es">Masculino</span> Default value: <span class="multilang" lang="en">Female</span><span class="multilang" lang="es">Femenino</span> Navigate to View profile page (click your username at top-right corner of page) Click menu: Settings ► Site administration ►Edit profile Select Male from the Gender drop-down and click Update profile button Create a new test user: Settings ► Site administration ► Users ► Accounts ► Add a new user Set all required fields for the new test user and select Español - Internacional (es) from the Preferred language drop-down, Male from the Gender drop-down and click Create user button. Login as the test user. Navigate to View profile ( Ver perfil in Spanish) page (click your username at top-right corner of page) Navigate to Edit profile ( Editar información in Spanish) page. Select Femenino from the Género drop-down menu and click Actualizar información personal button. Select English (en) from the language drop-down menu near the top-left corner of the page (language menu location maybe theme specific) (6) Page should display user profile settings with Gender: Female (7) Gender drop-down should have Female initially selected (default) (8) After clicking Update profile , the view profile page should be displayed with Gender: Male (9) Gender drop-down should have Female initially selected (default) (12) Page should display user profile settings with Género: Masculino (13) Género drop-down should have Masculino selected. (14) After clicking Actualizar información personal , the view profile (Ver perfil) page should be displayed with Género: Femenino (15) The view profile page should now be displayed in English with Gender: Female

      Custom user profile menu multi-language improvements so selection not set to a user's preferred language. Currently, custom user profile multi-language menu option is selected it's stored as the single language option the user selected and doesn't change when viewed by a user with a different language.

            brentboghosian Brent Boghosian
            brentboghosian Brent Boghosian
            Adrian Greeve Adrian Greeve
            Sam Hemelryk Sam Hemelryk
            Zachary Durber Zachary Durber
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.