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