Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-73240

In Hebrew the option "Match whole words only" not recognized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.0.5
    • Glossary
    • MOODLE_400_STABLE
    • Hide

      the problem in file lib/filterlib.php 
      around line 1452
      the code: 
       

              if ($linkobject->fullmatch) {
                  if (preg_match('^\w', $linkobject->workregexp))

      Unknown macro: {                 $linkobject->workregexp = 'b' . $linkobject->workregexp;             }

                  if (preg_match('\w$', $linkobject->workregexp))

      Unknown macro: {                 $linkobject->workregexp = $linkobject->workregexp . 'b';             }

              }

       
      needs to be replaced to:

              if ($linkobject->fullmatch)

      {                 $linkobject->workregexp = '\b' . $linkobject->workregexp . '\b';         }
      Show
      the problem in file lib/filterlib.php  around line 1452 the code:            if ($linkobject->fullmatch) {             if (preg_match(' ^\w ', $linkobject->workregexp)) Unknown macro: {                 $linkobject->workregexp = 'b' . $linkobject->workregexp;             }             if (preg_match(' \w$ ', $linkobject->workregexp)) Unknown macro: {                 $linkobject->workregexp = $linkobject->workregexp . 'b';             }         }   needs to be replaced to:         if ($linkobject->fullmatch) {                 $linkobject->workregexp = '\b' . $linkobject->workregexp . '\b';         }
    • Hide

      Add Hebrew word to an active glossary.
      mark  "Match whole words only" and save entry.
      In a page add the word as single word and as combination/
      the glossary should point the signal word as glossary entry and ignore from the combined words.
      for example the entry:  "אור" <> "אורנים"

      Show
      Add Hebrew word to an active glossary. mark  "Match whole words only" and save entry. In a page add the word as single word and as combination/ the glossary should point the signal word as glossary entry and ignore from the combined words. for example the entry:  "אור" <> "אורנים"

      When I add Hebrew entry in glossary and select  the option "Match whole words only" 
      moodle not recognize whole words only.

            Unassigned Unassigned
            shimonna Shimon Nagar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.