Allow a theme lang file
Bug #1362871 reported by
Robert Lyon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Wishlist
|
Robert Lyon |
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.
tags: | added: nominatedfeature |
Changed in mahara: | |
importance: | Low → Wishlist |
milestone: | 1.10.0 → 1.11.0 |
Changed in mahara: | |
milestone: | 1.11.0 → 1.10.0 |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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.nameofthe me}
... and this will look for the lang file in: theme/nameofthe me/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.