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:
Petr Škoda 2012-09-07 09:19:58 +02:00
parent 935c3d5ed2
commit a4a4b2f6c6
8 changed files with 335 additions and 256 deletions

View file

@ -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...';

View file

@ -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;

View file

@ -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';

View file

@ -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;