Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
c8d99231
Commit
c8d99231
authored
Jul 21, 2021
by
Mihail Geshoski
Browse files
MDL-72093 booktool_exportimscp: Replace strings in secondary nav
parent
9ce040a7
Changes
3
Hide whitespace changes
Inline
Side-by-side
mod/book/tool/exportimscp/lang/en/booktool_exportimscp.php
View file @
c8d99231
...
...
@@ -26,7 +26,9 @@ defined('MOODLE_INTERNAL') || die;
$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'
;
mod/book/tool/exportimscp/lang/en/deprecated.txt
0 → 100644
View file @
c8d99231
generateimscp,booktool_exportimscp
\ No newline at end of file
mod/book/tool/exportimscp/lib.php
View file @
c8d99231
...
...
@@ -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
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment