Determine locale for template use

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Determine locale for template use

Post by yellowled »

Right now, Bulletproof has the following lines in its index.tpl:

Code: Select all

<html xmlns="http://www.w3.org/1999/xhtml">
<!-- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -->
While the first line is okay, the second (commented out) would be preferable, and of course users with some know-how can easily adjust it themselves. But is there any way to determine the lang variable from a .tpl file and insert it automagically?

YL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Determine locale for template use

Post by garvinhicking »

Hi!

Try {$lang} ?

Regards,
Garvin
# 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/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Determine locale for template use

Post by yellowled »

garvinhicking wrote:Try {$lang} ?
Will do. Thanks :)

YL
Post Reply