Jump to:

11004 Posts in 2735 Topics by 1824 members

All other Modules

SilverStripe Forums » All other Modules » SS3.0.3 + Transalatable + check if lang

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 317 Views
  • wilsonStaff
    Community Member
    142 Posts

    SS3.0.3 + Transalatable + check if lang Link to this post

    HI to all, ive succeeded implementing Translatbale over a SS3.0.3 installation. Works fine:
    - i can create langauges
    - i can create translations to these languages
    - i can switch language back and forth.

    QUESTION => How can i detect which language is displayed from templates? As if it was (know thats NOT it but you get the idea):

    <% if lang = EN %>
    My stuff in english
    <% else %>
    My stuff in other language
    <% end_if %>

    I see <% control Translations %> in my switch language code, is that the key?

    OR is it by using _t ?


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.