Merged changes for lang string fixes MDL-7263

This commit is contained in:
moodler 2006-11-05 12:59:09 +00:00
parent 397ebf4ef4
commit 4ff95223ad
3 changed files with 9 additions and 6 deletions

View File

@ -31,6 +31,7 @@ $string['createlink'] = 'Insert Web Link';
$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';
@ -73,6 +74,7 @@ $string['matchcase'] = 'Match case';
$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!';
@ -85,6 +87,7 @@ $string['paste'] = 'Paste from clipboard';
$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';

View File

@ -42,8 +42,8 @@ function Init() {
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);
@ -81,7 +81,7 @@ function onPreview() {
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;
}

View File

@ -37,8 +37,8 @@ function Init() {
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);
@ -76,7 +76,7 @@ function onPreview() {
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;
}