Hello there !
i'm currently trying to add a language switcher to a website with translatable
i actually did this in my .ss
<ul class="translations">
<li class="currentLang">$ContentLocale.LimitCharacters(2,'')</li>
<% if Translations %>
<% loop Translations %>
<li class="$Locale.RFC1766"><a href="$Link" hreflang="$Locale.RFC1766"><% sprintf(_t('SHOWINPAGE','%s'),$Locale.LimitCharacters(2,'')) %></a></li>
<% end_loop %>
<% end_if %>
</ul>
This works but the current language is always getting in the first place... and its not what i want. ( i'd like it to always be in the same order )
Is there a way to use the loop with the current language inside?
should i modify the Translatable.php?
Thx for you help!
Bye :)