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, Ed, biapar, Willr, Ingo, swaiba

Translator function and .ss files

Go to End



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="" title="<% _t('VISIT','Visit') %>"> 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.