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

Glossary uses some hardcoded strings

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.3, 2.1, 2.2, 3.2
    • Fix Version/s: DEV backlog
    • Component/s: Glossary
    • Labels:
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_32_STABLE

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: