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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


1138 Views

Avatar
kudesign

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?

Thanks!!!