For example I
<?php
setlocale("LC_ALL", "SP");
echo "Hoy es ", strftime("%A"), ",", strftime("%d"), "de", strftime("%B");
?>
With that code I get an error message
Warning: Passing locale category name as string is deprecated. Use the LC_* -constants instead.
But I do get the date in spanish.
Instead of Monday I need Lunes. And so on.
Lunes, Marte, Miercoles, Jueves, Viernes, Sabado y Domingo