Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Template printing template code SS 2.4


3 Posts   242 Views


25 October 2013 at 1:50am Community Member, 17 Posts

This: <% _t( 'Appeak.Name', 'Name' ) %>
Prints: <% _t( 'Appeak.Name', 'Name' ) %>

Any idea why this is happening?

I have this template in root/themes/themeName/templates/,
code in: root/appeakpoker
lang files in: root/appeakpoker/lang

Yes I have these in the lang file:
global $lang;
$lang[ 'en_US' ][ 'Appeak' ][ 'Name' ] = 'Name';


25 October 2013 at 4:35am (Last edited: 25 October 2013 4:36am), Community Member, 94 Posts

I think, whitespace is missing, before and after %, isn't it?
<% _t('Appeak.Name','Name') %>


25 October 2013 at 7:05pm Community Member, 17 Posts

Thanks man, it never crossed my mind that, that would have been the problem thanks :)