hi,
how can I get the language in a template?
Thanks
language
Re: language
What do you mean?reinhardl wrote:how can I get the language in a template?
YL
Re: language
I want to check if language of the blog is german so display img1 and else display img2
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: language
Hi!
Check {$lang}.
Check {$lang}.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: language
Thanks , now it works:
Code: Select all
{if $entry.properties.ep_PixBox != ''}{$entry.properties.ep_PixBox}{else}{if $lang=="de"}{serendipity_getFile file="nopic-de.jpg"} {else} {serendipity_getFile file="nopic-en.jpg"}{/if}{/if}" alt="" />