v2.3.2. I have read all the docs in relating to the multi language contents, when I was trying to insert the code for the available language chooser using control in the template, the code suggested in the docs (http://doc.silverstripe.com/doku.php?id=multilingualcontent&s=language%20chooser) does not seem to work.
<% if Translations %> <ul class="translations"> <% control Translations %> <li class="$Locale.RFC1766"> <a href="$Link" hreflang="$Locale.RFC1766" title="$Title"> <% sprintf(_t('SHOWINPAGE','Show page in %s'),$Locale.Nice)%> </a> </li> <% end_control %> </ul> <% end_if %>
Firstly, typo as there should be an extra space between .Nice) & %> stated in this code:
<% sprintf(_t('SHOWINPAGE','Show page in %s'),$Locale.Nice)%>
Secondly, the '$Locale.Nice' doesn't work, as it does not translate to the name of the available language.
When a interested user spend much time to follow the steps to try to get something to work, only to find out that the steps were written incorrectly...
I think SS can improve in this area, as it is such a promising CMS, only to find out half of the modules don't work, even the simple Mollom anti-spam is difficult to implement, with too many versions & compatibility issues.
After 3 days of trying, and asking questions in the forums with no reply, I felt SS can improve in this area.
Has anyone got the available language chooser to work on their templates? anyone? SS team? Please help!!