← Back to team overview

mahara-contributors team mailing list archive

[Bug 1431679] [NEW] Support for JS lang strings in artefact blocktypes

 

Public bug reported:

Mahara has a system set up to allow language strings to be accessed via
Javascript:
https://wiki.mahara.org/index.php/Developer_Area/Language_strings#How_to_use_lang_strings_from_Javascript

There's a spinoff of this for JS lang strings provided by plugins. If a
JS file is loaded from a plugin's "js" directory, and the plugin class
has a public static "jsstrings" method, then that method is called to
load up strings for the page.

BUT, this doesn't work for blocktypes that live under artefacts. And I
need it to work for the artefact/annotation/blocktype/annotation block.
(See Bug 1431673)

** Affects: mahara
     Importance: High
     Assignee: Aaron Wells (u-aaronw)
         Status: In Progress


** Tags: api blocktype lang

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1431679

Title:
  Support for JS lang strings in artefact blocktypes

Status in Mahara ePortfolio:
  In Progress

Bug description:
  Mahara has a system set up to allow language strings to be accessed
  via Javascript:
  https://wiki.mahara.org/index.php/Developer_Area/Language_strings#How_to_use_lang_strings_from_Javascript

  There's a spinoff of this for JS lang strings provided by plugins. If
  a JS file is loaded from a plugin's "js" directory, and the plugin
  class has a public static "jsstrings" method, then that method is
  called to load up strings for the page.

  BUT, this doesn't work for blocktypes that live under artefacts. And I
  need it to work for the artefact/annotation/blocktype/annotation
  block. (See Bug 1431673)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1431679/+subscriptions


Follow ups

References