← Back to team overview

mahara-contributors team mailing list archive

[Bug 1362871] Re: Allow a theme lang file

 

Patch: https://reviews.mahara.org/#/c/3628

As described in the commit header, 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

We need to make sure that this works with external langpacks and with
/local lang overrides. It looks like it works the same way that plugin
lang strings do (by adding to a set of search paths that get_string()
uses) but we should explicitly test it.

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