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

Translator function and .ss files


Go to End


987 Views

Avatar
Taffy

Community Member, 119 Posts

22 April 2009 at 5:38am

I'm trying to use the translator function with some of my .ss files. When I add some script e.g <a href="http://www.silverstripe.com" title="<% _t('VISIT','Visit www.silverstripe.com') %>"> i get the following error: <b>Notice</b>: Array to string conversion in <b>C:\wamp\www\bcweb\sapphire\core\control\Director.php</b>; on line <b>358</b. No new files are created using the textcollector (I asume this is due to the error.)

Has anyone got any ideas why this is happeing? I'll buy you a beer if you do ;)

SS 2.2.3
i18n enabled.