language

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
reinhardl
Regular
Posts: 258
Joined: Wed Jun 20, 2007 8:54 am
Location: Germany

language

Post by reinhardl »

hi,
how can I get the language in a template?

Thanks
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: language

Post by yellowled »

reinhardl wrote:how can I get the language in a template?
What do you mean?

YL
reinhardl
Regular
Posts: 258
Joined: Wed Jun 20, 2007 8:54 am
Location: Germany

Re: language

Post by reinhardl »

I want to check if language of the blog is german so display img1 and else display img2
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: language

Post by garvinhicking »

Hi!

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/
reinhardl
Regular
Posts: 258
Joined: Wed Jun 20, 2007 8:54 am
Location: Germany

Re: language

Post by reinhardl »

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="" />
Post Reply