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

Glossary uses some hardcoded strings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.3, 2.1, 2.2, 3.2, 3.4.3, 3.5, 3.5.4, 3.6.2, 3.7
    • Fix Version/s: 3.5.5, 3.6.3
    • Component/s: Glossary, Translation
    • Labels:

      Description

      We can't translate some english strings to correct german strings because they are hard connected in your source code. I found some in moodle/mod/glossary/editcategories.php in Moodle 2.2 (20110719)

      Line 75: $navaction = get_string($action). " " . moodle_strtolower(get_string("category","glossary"));
      Line 100: echo "<h3 class=\"main\">" . get_string("edit"). " " . get_string("category","glossary") . "</h3>";
      Line 122: echo "<p>" . get_string("delete"). " " . get_string("category","glossary"). "</p>";
      Line 166: echo "<h3 class=\"main\">" . get_string("add"). " " . get_string("category","glossary"). "</h3>";
      Line 185: echo "<h3 class=\"main\">" . get_string("add"). " " . get_string("category","glossary"). "</h3>";

      In the german language pack we want to use the following strings:

      Line 75: Add category = Kategorie hinzufügen
      Line 100: Edit category = Kategorie bearbeiten
      Line 122: Delete category = Kategorie löschen
      Line 166: Add category = Kategorie hinzufügen
      Line 185: Add category = Kategorie hinzufügen

      I don't know if there are more hardcoded strings in some other files of the glossary module.

        Attachments

          Activity

            People

            Assignee:
            peterdias Peter Dias
            Reporter:
            krause Ralf Krause
            Peer reviewer:
            Amaia Anabitarte
            Integrator:
            Jake Dallimore
            Tester:
            CiBoT
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, David Mudrák (@mudrd8mz), Helen Foster
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Mar/19