From: julmis Date: Mon, 10 May 2004 21:16:16 +0000 (+0000) Subject: Removing hard coded strings X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=285ce16112ef9250fd559f727c841d5df74ea017;p=moodle.git Removing hard coded strings --- diff --git a/lib/editor/lang/en.php b/lib/editor/lang/en.php index 8096a1366e..dc0ef6eabd 100644 --- a/lib/editor/lang/en.php +++ b/lib/editor/lang/en.php @@ -1,14 +1,14 @@ - // I18N constants @@ -25,54 +25,57 @@ // that states what encoding is necessary.) HTMLArea.I18N = { - // the following should be the filename without .js extension - // it will be used for automatically load plugin language. - lang: "en", + // the following should be the filename without .js extension + // it will be used for automatically load plugin language. + lang: "en", - tooltips: { - bold: "", - italic: "", - underline: "", - strikethrough: "", - subscript: "", - superscript: "", - justifyleft: "", - justifycenter: "", - justifyright: "", - justifyfull: "", - insertorderedlist: "", - insertunorderedlist: "", - outdent: "", - indent: "", - forecolor: "", - hilitecolor: "", - inserthorizontalrule: "", - createlink: "", - unlink: "", - insertimage: "", - inserttable: "", - htmlmode: "", - popupeditor: "", - about: "", - showhelp: "", - textindicator: "", - undo: "", - redo: "", - cut: "", - copy: "", - paste: "", - insertsmile: "", - insertchar: "" - }, + tooltips: { + bold: "", + italic: "", + underline: "", + strikethrough: "", + subscript: "", + superscript: "", + justifyleft: "", + justifycenter: "", + justifyright: "", + justifyfull: "", + insertorderedlist: "", + insertunorderedlist: "", + outdent: "", + indent: "", + forecolor: "", + hilitecolor: "", + inserthorizontalrule: "", + createlink: "", + unlink: "", + insertimage: "", + inserttable: "", + htmlmode: "", + popupeditor: "", + about: "", + showhelp: "", + textindicator: "", + undo: "", + redo: "", + cut: "", + copy: "", + paste: "", + insertsmile: "", + insertchar: "", + clean: "", + lefttoright: "", + righttoleft: "" + }, - buttons: { - "ok": "", - "cancel": "", - "browse": "" - }, + buttons: { + "ok": "", + "cancel": "", + "browse": "" + }, - msg: { - "Path": "", - "TEXT_MODE": "" - } + msg: { + "Path": "", + "TEXT_MODE": "" + } }; diff --git a/lib/editor/popups/dlg_ins_char.php b/lib/editor/popups/dlg_ins_char.php index 86b71db6ba..83d207a793 100644 --- a/lib/editor/popups/dlg_ins_char.php +++ b/lib/editor/popups/dlg_ins_char.php @@ -127,7 +127,7 @@ function cancel() { } //--> -Insert Character +<?php print_string("choosechar","editor");?> diff --git a/lib/editor/popups/fullscreen.php b/lib/editor/popups/fullscreen.php index b43a3e8e53..cc5d275efd 100644 --- a/lib/editor/popups/fullscreen.php +++ b/lib/editor/popups/fullscreen.php @@ -1,11 +1,11 @@ -Fullscreen Editor +<?php print_string("fullscreen","editor");?> +html, body { margin: 0px; border: 0px; background-color: buttonface; } @@ -39,8 +39,8 @@ var parent_object = null; var editor = null; // to be initialized later [ function init() ] /* ---------------------------------------------------------------------- *\ - Function : - Description : + Function : + Description : \* ---------------------------------------------------------------------- */ function _CloseOnEsc(ev) { @@ -62,7 +62,7 @@ function _CloseOnEsc(ev) { \* ---------------------------------------------------------------------- */ function cloneObject(obj) { - var newObj = new Object; + var newObj = new Object; // check for array objects if (obj.constructor.toString().indexOf("function Array(") == 1) { @@ -77,7 +77,7 @@ function cloneObject(obj) { if (typeof node == 'object') { newObj[n] = cloneObject(node); } else { newObj[n] = node; } } - + return newObj; } @@ -115,7 +115,7 @@ function init() { config.height = "auto"; // change maximize button to minimize button - config.btnList["popupeditor"] = [ 'Minimize Editor', 'wwwroot ?>/lib/editor/images/fullscreen_minimize.gif', true, + config.btnList["popupeditor"] = [ '', 'wwwroot ?>/lib/editor/images/fullscreen_minimize.gif', true, function() { window.close(); } ]; // generate editor and resize it diff --git a/lib/editor/popups/insert_table.php b/lib/editor/popups/insert_table.php index 17029558ce..522c34371b 100644 --- a/lib/editor/popups/insert_table.php +++ b/lib/editor/popups/insert_table.php @@ -1,176 +1,176 @@ - - - -" /> - Insert Table - - - - - - - - - -
- - -
- - - - - - - - - - - - - - - - - - -
:
::
- -

- -

- - -
- -
:
- - -

- -

:
- - -
- -
- -
- - -
- -
:
- - -

- -

:
- - -
- -
- -
-
- - -
- - - - - + + + +" /> + <?php print_string("inserttable","editor");?> + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + +
:
::
+ +

+ +

+ + +
+ +
:
+ + +

+ +

:
+ + +
+ +
+ +
+ + +
+ +
:
+ + +

+ +

:
+ + +
+ +
+ +
+
+ + +
+ +
+ + + diff --git a/lib/editor/popups/link_std.php b/lib/editor/popups/link_std.php index 3743c62647..adb37205f9 100644 --- a/lib/editor/popups/link_std.php +++ b/lib/editor/popups/link_std.php @@ -13,7 +13,7 @@ "> - Insert/Modify Link + <?php print_string("insertlink","editor");?>