Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

Multilanguage site


Reply


928 Views

Avatar
saschavv

Community Member, 1 Post

25 May 2010 at 8:28am

Edited: 25/05/2010 8:29am

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