commit 03ff102ae65a8f5f989eb9696f3c9be75e34bba7
Author: Robert Lyon <email address hidden>
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 <email address hidden>
Reviewed: https:/ /reviews. mahara. org/3673 gitorious. org/mahara/ mahara/ commit/ 03ff102ae65a8f5 f989eb9696f3c9b e75e34bba7
Committed: http://
Submitter: Ghada El-Zoghbi (<email address hidden>)
Branch: master
commit 03ff102ae65a8f5 f989eb9696f3c9b e75e34bba7
Author: Robert Lyon <email address hidden>
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.nameofthe me}
and this will look for the lang file in: nameoftheme/ lang/langtype/ nameoftheme. php
./theme/
Change-Id: I16d5273ee94ad2 c066f7de5922253 edde325fbed
Signed-off-by: Robert Lyon <email address hidden>