Details
Description
The hover text for 'Search and replace' button in the HTML editor is probably hard coded in the following file:
"C:\xampplite\moodle\lib\editor\htmlarea\htmlarea.php"(246,28):
search_replace: [ "Search and replace", "ed_replace.gif", false, function(e) {e.execCommand("searchandreplace");} ]
which is inconvenient for translation.
Issue Links
| This issue will help resolve: | ||||
| MDL-7508 | Htmlarea editor not full localization |
|
|
|
Think this will fix it:
diff -ruN moodle/lang/en_utf8/editor.php moodle_local/lang/en_utf8/editor.php
— moodle/lang/en_utf8/editor.php 2006-11-01 14:56:17.000000000 +0000
+++ moodle_local/lang/en_utf8/editor.php 2006-11-03 20:12:00.000000000 +0000
@@ -47,6 +47,7 @@
$string['imageurl'] = 'Image URL';
$string['indent'] = 'Increase Indent';
$string['insertchar'] = 'Insert Special Character';
+$string['search_replace'] = 'Search and Replace';
$string['insertimage'] = 'Insert Image';
$string['insertlink'] = 'Insert Link';
$string['insertsmile'] = 'Insert Smiley';
diff -ruN moodle/lib/editor/htmlarea/lang/en.php moodle_local/lib/editor/htmlarea/lang/en.php
— moodle/lib/editor/htmlarea/lang/en.php 2006-06-23 20:53:26.000000000 +0100
+++ moodle_local/lib/editor/htmlarea/lang/en.php 2006-11-03 20:12:08.000000000 +0000
@@ -73,6 +73,7 @@
paste: "<?php print_string("paste","editor") ?>",
insertsmile: "<?php print_string("insertsmile","editor") ?>",
insertchar: "<?php print_string("insertchar","editor") ?>",
+ search_replace: "<?php print_string("search_replace","editor") ?>",
clean: "<?php print_string("wordclean","editor") ?>",
lefttoright: "<?php print_string("lefttoright","editor");?>",
righttoleft: "<?php print_string("righttoleft","editor");?>"