Comment 1 for bug 1362871

Revision history for this message
Aaron Wells (u-aaronw) wrote :

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.