Jump to:

23480 Posts in 18951 Topics by 2878 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: 863 Views
  • saschavv
    Community Member
    1 Post

    Multilanguage site Link to this post


    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>
    <% end_if %>
    <% end_control %>
    <% end_if %>

    Thanks in advance

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.