[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Tip: Language specification in header

I just came out with this little code. I think it can be useful for

This is a smart way of adding an specification of the language used
in the page in the header (with a 'Content-Language' meta-tag). 

It is smart enough in case you are not using the 'lang' module it
does not ouput anything. 

# (...)
<ifeq "<get-var __languages[]>" "" 
    "<meta http-equiv=\"Content-Language\" \ 
    content=\"<lang:es: es-ES><lang:en: en-GB>\">


If no  languages being used:


Spanish one:

<meta http-equiv="Content-Language" content="es-ES">

English one:

<meta http-equiv="Content-Language" content="en-GB">

><ose        xmanoel@bigfoot.com   (Vigo/Galicia/Espaņa)

12/14	(12/14/1946) NYC voted to be the UN headquarters. 
12/14	(12/14/1503) Nostradamus (born Michel de Notredame), French prophet. 
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com