Skip to content

Commit

Permalink
MDL-64905 block_myoverview: Progress bar percentage as placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Mar 4, 2019
1 parent 89d1238 commit c8def6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion blocks/myoverview/lang/en/block_myoverview.php
Expand Up @@ -48,7 +48,7 @@
$string['card'] = 'Card';
$string['cards'] = 'Cards';
$string['courseprogress'] = 'Course progress:';
$string['complete'] = 'Complete';
$string['completepercent'] = '{$a}% complete';
$string['favourites'] = 'Starred';
$string['future'] = 'Future';
$string['inprogress'] = 'In progress';
Expand Down Expand Up @@ -93,4 +93,5 @@
$string['viewcourse'] = 'View course';

// Deprecated since Moodle 3.7.
$string['complete'] = 'Complete';
$string['nocourses'] = 'No courses';
3 changes: 2 additions & 1 deletion blocks/myoverview/lang/en/deprecated.txt
Expand Up @@ -13,4 +13,5 @@ sortbydates,block_myoverview
timeline,block_myoverview
viewcoursename,block_myoverview
privacy:metadata:overviewlasttab,block_myoverview
nocourses,block_myoverview
nocourses,block_myoverview
complete,block_myoverview
2 changes: 1 addition & 1 deletion blocks/myoverview/templates/progress-bar.mustache
Expand Up @@ -30,5 +30,5 @@
</div>
<div class="small">
<span class="sr-only">{{#str}}aria:courseprogress, block_myoverview{{/str}}</span>
<strong>{{progress}}%</strong> {{#str}}complete, block_myoverview{{/str}}
{{#str}}completepercent, block_myoverview, <strong>{{progress}}</strong>{{/str}}
</div>

0 comments on commit c8def6e

Please sign in to comment.