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

Localised standard role names and descriptions

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.1, 2.1, 2.2, 2.3, 2.4
    • Fix Version/s: 2.4
    • Component/s: Roles / Access
    • Labels:
    • Testing Instructions:
      Hide

      1/ fresh new install, create some new roles, create a few course and rename some roles in them including the course contact role and enrol users to course + create some groups
      2/ test following areas, verify role names are displayed correctly (that is make sure localised role names are present, no blank names)

      • system role definitions and management
      • role management in all other context levels
      • roles in admin settings - search for "role" in admin tree
      • perform back and restore on other system
      • override role name alias
      • verify course contact roles are visible on /index.php and /course/info.php
      • verify main enrol UI role names
      • verify role names in enrol plugins settings pages and instance forms
      • verify group UI including autogroup script
      • verify mod_url extra parameters (you need to enable it in mod_url settings first)
      • verify all reports
      • verify user profile roles
      • verify role option in user selector (bulk files or list of all users)

      3/ try upgrade of existing site
      4/ try manually emptying names and descriptions of standard roles
      5/ try switching language again and verify names and descriptions are fully localised
      6/ review new help icons for role short name, full name and description on role definition page
      7/ verify form validation - empty full names are allowed for standard roles only

      Show
      1/ fresh new install, create some new roles, create a few course and rename some roles in them including the course contact role and enrol users to course + create some groups 2/ test following areas, verify role names are displayed correctly (that is make sure localised role names are present, no blank names) system role definitions and management role management in all other context levels roles in admin settings - search for "role" in admin tree perform back and restore on other system override role name alias verify course contact roles are visible on /index.php and /course/info.php verify main enrol UI role names verify role names in enrol plugins settings pages and instance forms verify group UI including autogroup script verify mod_url extra parameters (you need to enable it in mod_url settings first) verify all reports verify user profile roles verify role option in user selector (bulk files or list of all users) 3/ try upgrade of existing site 4/ try manually emptying names and descriptions of standard roles 5/ try switching language again and verify names and descriptions are fully localised 6/ review new help icons for role short name, full name and description on role definition page 7/ verify form validation - empty full names are allowed for standard roles only
    • Workaround:
      Hide

      none!

      Show
      none!
    • Affected Branches:
      MOODLE_17_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w28_MDL-8249_m24_roletranslations

      Description

      Originally the names for student and teacher could be changed in courses, I guess we could simulate it now with:

      1/ empty role name means use shortname to get rolename using get_string(); if name present in role definition use format_string() that handles multilang names
      2/ add role name plural field to handle plurals correctly
      3/ add function get_role_name() and get_role_name_plural() and search&replace in codebase

      ideas?

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  17 Vote for this issue
                  Watchers:
                  11 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    3/Dec/12