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

easier ability to define multi lang strings in fields that aren't richtext

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Filters, Forms Library, Language
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      Someone I work with at Liip wrote this script that does the following :

      • Looks for all input fields in a form and rewrites them to be larger, with language links at the bottom, when you click on each one, you can edit the string for that language
      • There's also a 'src' link that gives the source of the multi lang tags.

      At the moment, it's a matter of pulling in the js source in header.html, and then the following in footer.html:
      InputTransform.setLanguage('<?php echo current_language(); ?>'); InputTransform.init();

      I think this would be really awesome to have in 2.0, with an option to turn it on, or off, of course, and maybe configure which languages it lets you edit.

      I would advocate it being added to mforms (or whatever replaces them in 2.0)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mjollnir Penny Leach
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, David Mudrák (@mudrd8mz), Helen Foster, Víctor Déniz Falcón
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: