Moodle
  1. Moodle
  2. MDL-9616

Allow environment.xml to call call custom PHP code

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Administration
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE
    • Rank:
      34456

      Activity

      Hide
      Tim Hunt added a comment -

      Eloy, Help!

      I forgot one thing when I did this. There are two new strings that need to be included in the install lang files to make this work. How do I get them added? They are

      'environmentrecommendXXX'
      'environmentrequireXXX'

      I can't remember what the XXX is exactly, but they are with the other ones in the main admin file.

      Thanks.

      Show
      Tim Hunt added a comment - Eloy, Help! I forgot one thing when I did this. There are two new strings that need to be included in the install lang files to make this work. How do I get them added? They are 'environmentrecommendXXX' 'environmentrequireXXX' I can't remember what the XXX is exactly, but they are with the other ones in the main admin file. Thanks.
      Hide
      Eloy Lafuente (stronk7) added a comment -

      They must be added (the string keys) to:

      cvs://contrib/tools/lang2installer/installer_strings (HEAD)

      and then I must be "pinged".

      With that, I execute manually some updates and they will start being detected automatically for each lang (each night).

      In fact, viewing your code....are such strings:

      qtyperqpwillberemovedanyway
      qtyperqpwillberemoved

      Just add them and ping me.

      Ciao, Eloy

      P.S: I've been reviewing your code. Looks perfect! I've added one/two comments in Docs too.

      Show
      Eloy Lafuente (stronk7) added a comment - They must be added (the string keys) to: cvs://contrib/tools/lang2installer/installer_strings (HEAD) and then I must be "pinged". With that, I execute manually some updates and they will start being detected automatically for each lang (each night). In fact, viewing your code....are such strings: qtyperqpwillberemovedanyway qtyperqpwillberemoved Just add them and ping me. Ciao, Eloy P.S: I've been reviewing your code. Looks perfect! I've added one/two comments in Docs too.
      Hide
      Eloy Lafuente (stronk7) added a comment -

      Ah, just found also these strings:

      environmentrequirecustomcheck
      environmentrecommendcustomcheck

      So, perhaps the FOUR should be added to the "installer_strings" file above.

      Show
      Eloy Lafuente (stronk7) added a comment - Ah, just found also these strings: environmentrequirecustomcheck environmentrecommendcustomcheck So, perhaps the FOUR should be added to the "installer_strings" file above.
      Hide
      Tim Hunt added a comment -

      Oops, I forgot all about this. I have now changed and committed installer_strings. Thanks.

      Show
      Tim Hunt added a comment - Oops, I forgot all about this. I have now changed and committed installer_strings. Thanks.
      Hide
      Eloy Lafuente (stronk7) added a comment -

      installer_strings upgraded at moodle.org servers.

      Next generation (this European night) will add such strings to installer.php language files....

      Ciao

      Show
      Eloy Lafuente (stronk7) added a comment - installer_strings upgraded at moodle.org servers. Next generation (this European night) will add such strings to installer.php language files.... Ciao

        People

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

          Dates

          • Created:
            Updated:
            Resolved: