← Back to team overview

mahara-contributors team mailing list archive

[Bug 1461040] Re: Page layout thumbnails are missing in languages that have changed the layout lang strings

 

To clarify (because I think it wasn't spelled out in Robert's or my
earlier comments), the cause of the problem here is that the code that
generates those layout thumbnails is parsing some lang strings that
describe the percentage of width of columns.

In the core en-utf8 langpack, these strings look like this:

$string['100'] = '100';
$string['50,50'] = '50-50';
$string['33,33,33'] = '33-33-33';
$string['25,25,25,25'] = '25-25-25-25';
$string['20,20,20,20,20'] = '20-20-20-20-20';
$string['67,33'] = '67-33';
$string['33,67'] = '33-67';
$string['25,25,50'] = '25-25-50';
$string['50,25,25'] = '50-25-25';
$string['25,50,25'] = '25-50-25';
$string['15,70,15'] = '15-70-15';
$string['20,30,30,20'] = '20-30-30-20';

In the German langpack, they have been changed to this:

$string['100'] = 'Gleiche Spaltenbreite';
$string['15,70,15'] = 'Viel größere mittlere Spalte';
$string['20,20,20,20,20'] = 'Gleiche Spaltenbreite';
$string['20,30,30,20'] = 'Größere Mittelspalten';
$string['25,25,25,25'] = 'Gleiche Spaltenbreite';
$string['25,25,50'] = '25-25-50';
$string['25,50,25'] = 'Größere mittlere Spalte';
$string['33,33,33'] = 'Gleiche Spaltenbreite';
$string['33,67'] = 'Größere rechte Spalte';
$string['50,25,25'] = '50-25-25';
$string['50,50'] = 'Gleiche Spaltenbreite';
$string['67,33'] = 'Größere linke Spalte';

This is a bug in Mahara. We should not be parsing the values of language
strings. Robert's fix is to change the code so that instead it parses
the string *identifiers* (e.g., "100", "15,70,15", etc).

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

Title:
  Page layout thumbnails are missing in languages that have changed the
  layout lang strings

Status in Mahara ePortfolio:
  Fix Committed
Status in Mahara 15.04 series:
  Confirmed

Bug description:
  In 15.04 there are noch pictures of the layouts visible anymore. The
  layouts are still there, but you can't see what layout it is because
  of the missing picture. Windows. Firefox 38.0.1.

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


References