← Back to team overview

mahara-contributors team mailing list archive

[Bug 1399446] [NEW] Need to properly concat lang strings for webservices

 

Public bug reported:

Currently there are places where the text displayed to screen is in the
format of:

$html = get_string('stringidentifier') . $variable;

and

$string['stringidentifier'] = 'Example: ';

But that can lead to problems with translations so they need to be:

$html = get_string('stringidentifier', 'section', $variable);

and

$string['stringidentifier'] = 'Example: %s';

** Affects: mahara
     Importance: High
     Assignee: Robert Lyon (robertl-9)
         Status: Confirmed


** Tags: webservices

-- 
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/1399446

Title:
  Need to properly concat lang strings for webservices

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  Currently there are places where the text displayed to screen is in
  the format of:

  $html = get_string('stringidentifier') . $variable;

  and

  $string['stringidentifier'] = 'Example: ';

  But that can lead to problems with translations so they need to be:

  $html = get_string('stringidentifier', 'section', $variable);

  and

  $string['stringidentifier'] = 'Example: %s';

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


Follow ups

References