Skip to content

Commit

Permalink
MDL-71373 core_enrol: localize "close" in role manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed May 14, 2021
1 parent c9be7c7 commit 0c3a643
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions admin/tool/usertours/templates/tourstep.mustache
Expand Up @@ -58,9 +58,9 @@
<div class="modal-body" data-placeholder="body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-role="previous">{{# str }} previouspage, moodle {{/ str }}</button>
<button type="button" class="btn btn-primary" data-role="next">{{# str }} nextpage, moodle {{/ str }}</button>
<button class="btn btn-secondary" data-role="end"> {{# str }} endtour, tool_usertours {{/ str }} </button>
<button type="button" class="btn btn-secondary" data-role="previous" aria-label="{{# str }} previouspage, moodle {{/ str }}">{{# str }} previouspage, moodle {{/ str }}</button>
<button type="button" class="btn btn-primary" data-role="next" aria-label="{{# str }} nextpage, moodle {{/ str }}">{{# str }} nextpage, moodle {{/ str }}</button>
<button class="btn btn-secondary" data-role="end" aria-label="{{# str }} endtour, tool_usertours {{/ str }}"> {{# str }} endtour, tool_usertours {{/ str }} </button>
</div>
</div>
</div>
3 changes: 2 additions & 1 deletion enrol/yui/rolemanager/rolemanager.js
Expand Up @@ -366,7 +366,8 @@ YUI.add('moodle-enrol-rolemanager', function(Y) {
var i, m = this.get(MANIPULATOR);
var element = Y.Node.create('<div class="popover popover-bottom"><div class="arrow"></div>' +
'<div class="header popover-title">' +
'<div role="button" class="close" aria-label="Close">' +
'<div role="button" class="close" aria-label="' +
M.util.get_string('closebuttontitle', 'moodle') + '">' +
'<span aria-hidden="true">&times;</span></div>' +
'<h3>'+M.util.get_string('assignroles', 'role')+'</h3>' +
'</div><div class="content popover-content form-inline form-group"></div></div>');
Expand Down
2 changes: 1 addition & 1 deletion lib/tests/tablelib_test.php
Expand Up @@ -142,7 +142,7 @@ public function test_has_next_pagination() {
$headers = $this->generate_headers(2);

// Search for pagination controls containing 'page-link"\saria-label="Next"'.
$this->expectOutputRegex('/page-link"\saria-label="Next"/');
$this->expectOutputRegex('/page-link"\saria-label="Next page"/');

$this->run_table_test(
$columns,
Expand Down

0 comments on commit 0c3a643

Please sign in to comment.