Details
Description
Search Moodle - [[blockname]] - Missing Strings for English
I noticed today... after updating to the latest 1.8.3 that I have a block that has no strings.. I am assuming it is a local "Search Moodle" block... but with the strings missing I cannot be sure. It has a version of: 2007081100 .
The only string that it does have is: "Search Moodle" which is next to an input box.
The missing strings are:
[[blockname]]
[[search]]
[[enteryoursearchquery]]
[[advancedsearch]]
[[statistics]]
[[searching]]
[[documents]]
[[configsearchtext]]
[[configbuttonlabel]]
[[configenablefileindexing]]
[[configfiletypes]]
[[configpdftotextcmd]]
[[configwordtotextcmd]]
[[configwordtotextenv]]
[[configlimitindexbody]]
-----------
This search suggests it is a block called search...
[root@www moodle]# find -type f -exec grep -H -i "configlimitindexbody" {} \;
./blocks/search/config_global.html: <b><?php print_string('configlimitindexbody', 'block_search') ?>:</b>
-----------
Only 2 language files... (ie) not English... match...
[root@www moodle]# find -type f -exec grep -H -i "configlimitindexbody" {} \;
./nl_utf8/block_search.php:$string['configlimitindexbody'] = 'Beperk grootte van gendexeerd tekstdeel';
./fr_utf8/block_search.php:$string['configlimitindexbody'] = 'Taille limite du corps index';
-----------
Is this an old block I need to delete??
or
Do I need to get some strings back from somewhere else??
Thanks in advance, Ajos1
(PS: The only additional blocks I have installed are... ajosmain aou_clock livestats questionnaire )
Issue Links
| This issue has a non-specific relationship to: | ||||
| MDL-11406 | Search block has language files in the wrong place |
|
|
|
...
[[searchmoodle]]
[]go]]
... and probably some more.
There are language strings in moodle/search/lang directory that are not found (in our installation). Copying to /moodle/lang helped somehow.
However, more of them are not defined in moodle/blocks/search/lang. In fact, the directory does not even exist. I have created moodle/blocks/search/lang/en_utf8/block_search.php with the following contents and now it works better:
<?php
$string['blockname'] = 'Global Search';
$string['go'] = 'Go';
$string['search'] = 'Search';
$string['enteryoursearchquery'] = 'Enter your search query';
$string['advancedsearch'] = 'Advanced search';
$string['statistics'] = 'Statistics';
$string['searching'] = 'Searching';
$string['searchmoodle'] = 'Search in Moodle';
$string['documents'] = 'Documents';
$string['configsearchtext'] = 'Search text';
$string['configbuttonlabel'] = 'Button label';
$string['configenablefileindexing'] = 'Enable file indexing';
$string['configfiletypes'] = 'File types';
$string['configpdftotextcmd'] = 'PDF2TXT command';
$string['configwordtotextcmd'] = 'DOC2TXT command';
$string['configwordtotextenv'] = 'DOC2TEX command';
$string['configlimitindexbody'] = 'Limit index body';
?>