Jump to:

4945 Posts in 17872 Topics by 1494 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » CMS and locales

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1139 Views
  • Jarek
    Community Member
    30 Posts

    CMS and locales Link to this post


    I've two questions about setting locales:

    1. What is i18n::enable(); function doing? In this code:


    with this function commented/uncommented I don't see any different in working.

    2. On local windows server in CMS all items are translated (admin account language is set to polish). When I moved site to linux server I've to problems:

    * i'm getting error "Cannot use string offset as an array in <b>/sapphire/core/i18n.php</b> on line <b>859</b><br />" (problem is in i18n::enable(); function)
    * not all cms items are translated. Translated is only right part of CMS (page edit tabs)

    Why on one server is ok and on another isn't?

  • stooni
    Community Member
    89 Posts

    Re: CMS and locales Link to this post

    hello, in many modules these hase Language Files in a folder named \blog\lang in these folder are the language files from your language and when you give in these code in _config.php then you activate these files.

    ----Why on one server is ok and on another isn't?

    Perhaps you have not the same modules installed?


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.