Skip to content

Commit

Permalink
MDL-72093 booktool_exportimscp: Replace strings in secondary nav
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihail Geshoski committed Sep 14, 2021
1 parent 9ce040a commit c8d9923
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion mod/book/tool/exportimscp/lang/en/booktool_exportimscp.php
Expand Up @@ -26,7 +26,9 @@

$string['eventbookexported'] = 'Book exported';
$string['exportimscp:export'] = 'Export book as IMS content package';
$string['generateimscp'] = 'Generate IMS CP';
$string['nochapters'] = 'No book chapters found, so unable to export to IMS CP.';
$string['pluginname'] = 'Book IMS CP export';
$string['privacy:metadata'] = 'The Book IMS CP export plugin does not store any personal data.';

// Deprecated since Moodle 4.0.
$string['generateimscp'] = 'Generate IMS CP';
1 change: 1 addition & 0 deletions mod/book/tool/exportimscp/lang/en/deprecated.txt
@@ -0,0 +1 @@
generateimscp,booktool_exportimscp
2 changes: 1 addition & 1 deletion mod/book/tool/exportimscp/lib.php
Expand Up @@ -36,6 +36,6 @@ function booktool_exportimscp_extend_settings_navigation(settings_navigation $se
if (has_capability('booktool/exportimscp:export', $PAGE->cm->context)) {
$url = new moodle_url('/mod/book/tool/exportimscp/index.php', array('id'=>$PAGE->cm->id));
$icon = new pix_icon('generate', '', 'booktool_exportimscp', array('class'=>'icon'));
$node->add(get_string('generateimscp', 'booktool_exportimscp'), $url, navigation_node::TYPE_SETTING, null, null, $icon);
$node->add(get_string('download'), $url, navigation_node::TYPE_SETTING, null, null, $icon);
}
}

0 comments on commit c8d9923

Please sign in to comment.