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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

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

Go to End



Community Member, 64 Posts

2 August 2009 at 11:45pm

Edited: 03/08/2009 2:57am

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?