Jump to:

23453 Posts in 18902 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Translator function and .ss files

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

Page: 1
Go to End
Author Topic: 542 Views
  • Taffy
    Community Member
    119 Posts

    Translator function and .ss files Link to this post

    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.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.