Jump to:

22977 Posts in 11742 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Multilanguage site

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: 815 Views
  • saschavv
    Avatar
    Community Member
    1 Post

    Multilanguage site Link to this post

    Hi,

    I have created a multi-language site with silverstripe. Now I'm running into a number of issues related to the multi-language features. I hope that someone can give me some hints so I can try to solve these issues.

    - I don't know how I can make widgets 'translatable' aware. A widget that is added in one language will also popup in all the other languages.

    - What can I do to make the link panel (which is visible when I press the 'add anchor' button) multi-language aware.

    - How can I create a robust language switch template. I used the one that is shown in the documentation but
    this template doesn't work for deleted and unpublished pages. I have made a little patch to fix the unpublished
    issue, but I don't know how the change the code to fix the problem with the deleted pages.

    <% if Translations %>
    <ul class="translations">
    <% control Translations %>
    <% if Status == "Published" %>
    <li class="$Locale.RFC1766">
    <a href="$Link" hreflang="$Locale.RFC1766" title="$Title"></a>
    </li>
    <% end_if %>
    <% end_control %>
    </ul>
    <% end_if %>

    Thanks in advance

    815 Views
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.