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

Adding links to missing help files on lang.php.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.9
    • Component/s: Language
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Now we can go to a missing string via links directly to translate.
      But missing help files are just notified on lang.php without links.

      To make translators go to langdoc.php easyly, I recommend the following improvement on lang.php.

      Index: lang.php
      ===================================================================
      RCS file: /cvsroot/moodle/moodle/admin/lang.php,v
      retrieving revision 1.89
      diff -u -r1.89 lang.php
      — lang.php 1 Mar 2007 04:10:41 -0000 1.89
      +++ lang.php 7 Mar 2007 23:43:03 -0000
      @@ -191,7 +191,7 @@

      foreach ($files as $filekey => $file) { // check all the help files.
      if (!file_exists("$langdir/help/$file"))

      { - echo "<p><font color=\"red\">".get_string("filemissing", "", "$langdir/help/$file")."</font></p>"; + echo "<a href=\"$CFG->wwwroot/$CFG->admin/langdoc.php?sesskey=$USER->sesskey&currentfile=help/$file\">" .get_string("filemissing", "", "$currentlang/help/$file") . "</a>" . "<br />\n"; $somethingfound = true; continue; }

      @@ -202,7 +202,7 @@
      }
      foreach ($files as $filekey => $file) { // check all the docs files.
      if (!file_exists("$langdir/docs/$file"))

      { - echo "<p><font color=\"red\">".get_string("filemissing", "", "$langdir/docs/$file")."</font></p>"; + echo "<a href=\"$CFG->wwwroot/$CFG->admin/langdoc.php?sesskey=$USER->sesskey&currentfile=docs/$file\">" .get_string("filemissing", "", "$currentlang/docs/$file") . "</a>" . "<br />\n"; $somethingfound = true; continue; }

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08