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

Translator function and .ss files


Reply

551 Views

Avatar
Taffy

22 April 2009 at 5:38am Community Member, 119 Posts

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.