Moodle
  1. Moodle
  2. MDL-12094

Search Moodle - [[blockname]] - Missing Strings for English

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.3
    • Fix Version/s: 1.8.3, 1.8.4
    • Component/s: Blocks
    • Labels:
      None
    • Environment:
      Linux Redhat FC7, Apache
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE
    • Rank:
      29953

      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

          Activity

          Hide
          Miroslav Fikar added a comment -

          ...
          [[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';
          ?>

          Show
          Miroslav Fikar added a comment - ... [ [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'; ?>
          Hide
          Antony O'Sullivan added a comment -



          Did you mean.... moodle/lang/en_utf8/block_search.php ... that is where I have put those strings... and things look better...

          Show
          Antony O'Sullivan added a comment - Did you mean.... moodle/lang/en_utf8/block_search.php ... that is where I have put those strings... and things look better...
          Hide
          Antony O'Sullivan added a comment -

          A lovely person gave me this solution... which works!!

          >>>
          >>> "You must download Moodle 1.9 and in lang folder are missing files "
          >>>

          Show
          Antony O'Sullivan added a comment - A lovely person gave me this solution... which works!! >>> >>> "You must download Moodle 1.9 and in lang folder are missing files " >>>
          Hide
          Wen Hao Chuang added a comment -

          OK I committed it back to CVS (copy from moodle 1.9) to /blocks/search/lang/en_utf8/block_search.php

          Show
          Wen Hao Chuang added a comment - OK I committed it back to CVS (copy from moodle 1.9) to /blocks/search/lang/en_utf8/block_search.php
          Hide
          Antony O'Sullivan added a comment -

          This ticket can be closed...

          Show
          Antony O'Sullivan added a comment - This ticket can be closed...
          Hide
          Wen Hao Chuang added a comment -

          ok closing!

          Show
          Wen Hao Chuang added a comment - ok closing!

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: