← Back to team overview

mahara-contributors team mailing list archive

[Bug 1362871] A change has been merged

 

Reviewed:  https://reviews.mahara.org/3673
Committed: http://gitorious.org/mahara/mahara/commit/03ff102ae65a8f5f989eb9696f3c9be75e34bba7
Submitter: Ghada El-Zoghbi (ghada@xxxxxxxxxxxxxxx)
Branch:    master

commit 03ff102ae65a8f5f989eb9696f3c9be75e34bba7
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date:   Fri Aug 29 12:26:18 2014 +1200

Language-ifying the strings in the primary school theme (Bug 1362871)

Currently there is no way for themes to come with their own language
files - but sometimes a theme may have some text it wants to display
that is unique to that theme - like when it has a homeinfo.tpl file

I've added the checks to the lang path for checking a theme's lang file

To use it in a template you need to indicate the section is a theme by
going:

{str tag=stringtoget section=theme.nameoftheme}

and this will look for the lang file in:
./theme/nameoftheme/lang/langtype/nameoftheme.php

Change-Id: I16d5273ee94ad2c066f7de5922253edde325fbed
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>

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

Title:
  Allow a theme lang file

Status in Mahara ePortfolio:
  In Progress

Bug description:
  Sometimes a theme may have a homeinfo.tpl file that contains hardcoded
  lang strings.

  But there is no relating lang file to make things easy to translate.

  So I've got the system to check for a theme language file.

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


References