4579 Posts in 1388 Topics by 1378 members
| Go to End | ||
| Author | Topic: | 3632 Views |
-
Re: About Multi Language installation

26 August 2010 at 6:25am
Thanks, it works perfect!
Could it be possible to change language words into a flag pictures? -
Re: About Multi Language installation

26 August 2010 at 10:23am Last edited: 26 August 2010 10:24am
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
-
Re: About Multi Language installation

28 August 2010 at 1:03am
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... -
Re: About Multi Language installation

26 January 2011 at 10:21pm
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" />
-
Re: About Multi Language installation

15 June 2012 at 10:31am
Cheers yurigoul, your _config.php code worked for me, fixing this DB build error:
Unknown column 'SiteTree.Locale' in 'where clause'
| 3632 Views | ||
| Go to Top |



