Para nuestas web en multilenguaje
lang.es.php
<?php
$month_a = array(
1 => "Enero",
2 => "Febrero",
3 => "Marzo",
4 => "Abril",
5 => "Mayo",
6 => "Junio",
7 => "Julio",
8 => "Agosto",
9 => "Sptiembre",
10 => "Octubre",
11 => "Noviembre",
12 => "Diciembre",
);
$day_a = array(
1 => "Lunes",
2 => "Martes",
3 => "Miercoles",
4 => "Jueves",
5 => "Viernes",
6 => "Sabado",
7 => "Domingo",
);
?>
time.php
<?php
$day = date("N",time());
$month = date("n",time());
$year = date("Y",time());
?>
<?php
$idioma = substr(getenv("HTTP_ACCEPT_LANGUAGE"), 0, 2); //Conseguimos el idioma del navegador
include "language." . $idioma . ".php"; //incluimos el fichero segun el idioma
include "time.php";
echo $day_a[$day] . ", " . date("d",time()) ." " . $month_a[$month] . " " . $year;
?>