mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
MDL-35289 use new TinyMCE en lang import
AMOS BEGIN MOV [common:browsemedia,editor_tinymce],[moodlemedia:browsemedia,tinymce_moodlemedia] MOV [common:browseimage,editor_tinymce],[moodleimage:browseimage,tinymce_moodleimage] AMOS END
This commit is contained in:
parent
935c3d5ed2
commit
a4a4b2f6c6
8 changed files with 335 additions and 256 deletions
|
@ -24,4 +24,5 @@
|
|||
|
||||
$string['pluginname'] = 'Insert image';
|
||||
|
||||
/* This plugin abuses strings from the standard TinyMCE advimage plugin, there is no need to duplicate them here. */
|
||||
/* This plugin abuses strings from the standard TinyMCE advimage plugin, there is no need to duplicate them here. */
|
||||
$string['moodleimage:browseimage'] = 'Find or upload an image...';
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
return "";
|
||||
|
||||
html = '<a class="moodlebutton" id="' + id + '_link" href="javascript:openBrowser(\'' + id + '\',\'' + target_form_element + '\', \'' + type + '\',\'' + option + '\');" onmousedown="return false;">';
|
||||
html += '<span id="' + id + '">' + tinyMCEPopup.getLang('browseimage') + '</span>';
|
||||
html += '<span id="' + id + '">' + tinyMCEPopup.getLang('moodleimage.browseimage') + '</span>';
|
||||
html += '</a>';
|
||||
|
||||
return html;
|
||||
|
|
|
@ -26,4 +26,5 @@ $string['nopreview'] = 'Can not preview media.';
|
|||
$string['pluginname'] = 'Insert media';
|
||||
|
||||
/* All lang strings used from TinyMCE JavaScript code must be named 'pluginname:stringname', no need to create langs/en_dlg.js */
|
||||
$string['moodlemedia:browsemedia'] = 'Find or upload a sound, video or applet...';
|
||||
$string['moodlemedia:desc'] = 'Insert Moodle media';
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
return "";
|
||||
|
||||
html = '<a class="moodlebutton" id="' + id + '_link" href="javascript:openBrowser(\'' + id + '\',\'' + target_form_element + '\', \'' + type + '\',\'' + option + '\');" onmousedown="return false;">';
|
||||
html += '<span id="' + id + '">' + tinyMCEPopup.getLang('browsemedia') + '</span>';
|
||||
html += '<span id="' + id + '">' + tinyMCEPopup.getLang('moodlemedia.browsemedia') + '</span>';
|
||||
html += '</a>';
|
||||
|
||||
return html;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue