$string['cut'] = 'Cut selection';
$string['cutpastemozilla'] = 'Unfortunately, you cannot currently use normal keyboard shortcuts (or even the Paste button) for pasting text into this online editor. This is because of a security feature that is built into some versions of Mozilla and Firefox browsers.<br /><br />There are three known workarounds you can try: <br /> (1) Instead of CTRL-v, use SHIFT-Insert <br /> (2) Use the Edit->Paste menu in your browser <br /> (3) Change the preferences in your browser by editing the user.js file. <br /><br />Click the OK button below for more help, or Cancel to return to the editor';
$string['delete'] = 'Delete';
+$string['enterurlfirst'] = 'You have to enter an URL first';
$string['filebrowser'] = 'File Browser';
$string['findwhat'] = 'Find';
$string['fontname'] = 'Fontname';
$string['middle'] = 'Middle';
$string['minimize'] = 'Minimize editor';
$string['move'] = 'Move';
+$string['mustenterurl'] = 'You must enter the URL';
$string['nolink'] = 'Prevent automatic linking';
$string['normal'] = 'Normal';
$string['notimage'] = 'Selected file is not an image. Please select an image!';
$string['path'] = 'Path';
$string['percent'] = 'Percent';
$string['pixels'] = 'Pixels';
+$string['pleaseenteralt'] = 'Please enter the alternate text';
$string['popupeditor'] = 'Enlarge Editor';
$string['preformatted'] = 'Preformatted';
$string['preview'] = 'Preview';
function onOK() {
var required = {
- "f_url": "You must enter the URL",
- "f_alt": "Please enter the alternate text"
+ "f_url": "<?php print_string("mustenterurl", "editor");?>",
+ "f_alt": "<?php print_string("pleaseenteralt", "editor");?>"
};
for (var i in required) {
var el = document.getElementById(i);
var f_url = document.getElementById("f_url");
var url = f_url.value;
if (!url) {
- alert("You have to enter an URL first");
+ alert("<?php print_string("enterurlfirst","editor");?>");
f_url.focus();
return false;
}
function onOK() {
var required = {
- "f_url": "You must enter the URL",
- "f_alt": "Please enter the alternate text"
+ "f_url": "<?php print_string("mustenterurl", "editor");?>",
+ "f_url": "<?php print_string("pleaseenteralt", "editor");?>"
};
for (var i in required) {
var el = document.getElementById(i);
var f_url = document.getElementById("f_url");
var url = f_url.value;
if (!url) {
- alert("You have to enter an URL first");
+ alert("<?php print_string("enterurlfirst","editor");?>");
f_url.focus();
return false;
}