[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Tip: Language specification in header
- From: Xose Manoel Ramos <nospam@thanx>
- Date: Tue, 14 Dec 1999 15:55:35 +0100
I just came out with this little code. I think it can be useful for
somebody.
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.
<head>
# (...)
<ifeq "<get-var __languages[]>" ""
""
"<meta http-equiv=\"Content-Language\" \
content=\"<lang:es: es-ES><lang:en: en-GB>\">
"
>
</define-tag>
</head>
Example:
If no languages being used:
<head>
</head>
Spanish one:
<head>
<meta http-equiv="Content-Language" content="es-ES">
</head>
English one:
<head>
<meta http-equiv="Content-Language" content="en-GB">
</head>
--
Saudos:
><ose xmanoel@bigfoot.com (Vigo/Galicia/Espaņa)
http://pagina.de/xmanoel/
http://w3.to/mikkeli/
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