Jump to:

4951 Posts in 14058 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » About Multi Language installation

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1 2
Go to End
Author Topic: 4329 Views
  • profimus
    Avatar
    Community Member
    8 Posts

    Re: About Multi Language installation Link to this post

    Thanks, it works perfect!
    Could it be possible to change language words into a flag pictures?

  • yurigoul
    Avatar
    Community Member
    202 Posts

    Re: About Multi Language installation Link to this post

    One option is <img src ="$Locale.png" /> Or better yet is a php function that gives the right path

    Or you use the class="$Locale" in your css file (with li.de-DE a for instance) to change the background of the href for link and hover

  • profimus
    Avatar
    Community Member
    8 Posts

    Re: About Multi Language installation Link to this post

    I've used a space in the code:

    <img src ="themes/mytheme/images/$Locale .png" alt="$Title" />

    And flag picture names are respectively "en_GB .png" & "lt_LT .png" - now works perfect.
    Not sure why did'n work without a space - checked final html code and observed that $Locale argument wasn't grabbed...

  • elsbth
    Avatar
    Community Member
    8 Posts

    Re: About Multi Language installation Link to this post

    Try putting curly brackets around your variable or else .png is read as a property or method for $Locale.

    <img src ="themes/mytheme/images/{$Locale}.png" alt="$Title" />

  • Isaac Salt
    Avatar
    Community Member
    3 Posts

    Re: About Multi Language installation Link to this post

    Cheers yurigoul, your _config.php code worked for me, fixing this DB build error:

    Unknown column 'SiteTree.Locale' in 'where clause'

    4329 Views
Page: 1 2
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.