Jump to:

3432 Posts in 1025 Topics by 865 members

Template Questions

SilverStripe Forums » Template Questions » Translating static content

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

Page: 1 2 3
Go to End
Author Topic: 4745 Views
  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: Translating static content Link to this post

    >> are no longer switching languages...

    I'm a bit confused... Do you mean they did switch before this fix, while the php didn't? Or did they never?

    Anyway, for SilverStripe javascript (ss.i18n.js) to detect the right locale, you need something like this in your template, that's where the detectLocale() function tries to find the current locale:

    <meta http-equiv="Content-Language" content="$ContentLocale"/>

    Also the right js translation file needs to be present in sapphire/javascript/lang/ (there are only a few). I know there were some other issues, but I can't quite remember...

    4745 Views
Page: 1 2 3
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.