Moodle

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

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0.8
  • Component/s: Filters, Forms Library, Language
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed 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)

Activity

Hide
Penny Leach added a comment -

the javascript source (still using old multilang syntax)

Show
Penny Leach added a comment - the javascript source (still using old multilang syntax)
Hide
Robert Brenstein added a comment -

At first glance, it should automatically support either all installed languages or those in the language menu. It could be a nifty feature. I wonder though whether it would be restricted to test input fields only or also support texarea fields.

Show
Robert Brenstein added a comment - At first glance, it should automatically support either all installed languages or those in the language menu. It could be a nifty feature. I wonder though whether it would be restricted to test input fields only or also support texarea fields.
Hide
Penny Leach added a comment -

Supported languages: yes, definitely.

I would say it should do:

-textareas that don't use HTMLEditor (mforms already knows this)

  • text fields
Show
Penny Leach added a comment - Supported languages: yes, definitely. I would say it should do: -textareas that don't use HTMLEditor (mforms already knows this)
  • text fields

People

Vote (2)
Watch (3)

Dates

  • Created:
    Updated: