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

SS v2.3.2 does not recognize this: <% sprintf(_t('SHOWINPAGE','Show page in %s'),$Locale.Nice)%>




2 August 2009 at 11:45pm (Last edited: 3 August 2009 2:57am), Community Member, 64 Posts

I am trying to include the language switching function in v2.3.2, the code provided in doc works, but it did not recognize

<% sprintf(_t('SHOWINPAGE','Show page in %s'),$Locale.Nice) %>

this code should translate to 'Show page in <name of available language>'

Please help!

What is the best way to switch languages?