Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3644

Use format_string for role name output

XMLWordPrintable

    • MOODLE_22_STABLE

      Daniel,
      thanks for your work migrating the roles capabilities report to Moodle 2.2.x.

      I've got one more thing: As we have our role names translated, could you please use format_string() function for printing the role names in the table heading and in the select box?

      This means using
      <option value=\"{$rid}\" {$selected}>".format_string($r->name)."</option>
      instead of
      <option value=\"{$rid}\" {$selected}>{$r->name}</option>

      and
      $th .= "<th class=\"role\">".format_string($r->name)."</th>";
      instead of
      $th .= "<th class=\"role\">{$r->name}</th>";

      That would be great, thanks in advance.
      Alex

            danielneis Daniel Neis Araujo
            abias Alexander Bias
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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