Posts by: [email protected]

Posts: 4
Post: 2186
Topic: Spanish date format on blog posts

By the way;


I've followed upo the instructions in order to adapt to the spanish date scriptthe Plugin Simple Blog 1, and it also works (awesome, being me the one who made the mods!!).

And know, one step further: let's suppose that i'm trying to make a multilingual web site.

By the moment the way i'm doing it is by crating a menu tree in wich the first levels are occupied only by the language links, and all the sub links are the contents in each language.

Is there any way of making the blog show the date in the desired language?

11 years ago
Post: 2185
Topic: Spanish date format on blog posts

Hi Stano;

Thank you very much for your answer. I'm a total disabled on PHP!!!.

Any way, after being ill at home since the last three days, I've read your instructions and now it works perfect!!!.

As soon as i have uploaded the site, I'll send a link !!.

Thanks again!!

11 years ago
Post: 2136
Topic: Spanish date format on blog posts

Hi Josh;

Thanks for your anwser. But, I'm afraid that the problem is not the date configuration on the GP Easy Blog module.

As far as I know there are several ways of printing the date format, and I understand the configuration tool.
The date is shown on the default language of the server. I can't access the config.php on my hosting provider to change language settings, so, there must be a way of creating an array with the names of the months and each day of the week in order to show the spanish date language, not format.

This is an example code of the arrays we'd create to show the spanish date:

function SpanishDate($FechaStamp)
  $ano = date('Y',$FechaStamp);
  $mes = date('n',$FechaStamp);
  $dia = date('d',$FechaStamp);
  $diasemana = date('w',$FechaStamp);

  $diassemanaN= array("Domingo","Lunes","Martes","Miércoles",
                      "Jueves","Viernes","Sábado"); $mesesN=array(1=>"Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio",
  return $diassemanaN[$diasemana].", $dia de ". $mesesN[$mes] ." de $ano";

So i could get " Viernes, 8 de Julio, 2011" instead of "Friday, 8 July 2011"


Edited: 11 years ago
Post: 2113
Topic: Spanish date format on blog posts

Hi everybody;


I'm new to this fantastic CMS. Right now I'm working on a new project completely based on GP Easy (this will be my first but not last project whith this tool!).

But, as i'm not a good programmer (just CSS "coinosceur") and graphic designer, i can't figure out how can I translate the dates on the module Blog Made Easy 1, to Spanish.

My client wants to read "Lunes" instead of monday, or "Julio" instead of "July"…

I've read about PHP date function on Spanish and i found this, in order to force PHP to show the spanish date format: 



set_locale(LC_ALL,"[email protected]","es_ES","esp");
echo strftime("%A %d de %B del %Y");


But i can´t figure out where to insert the firt line of code in order to translate the dates…any idea?

Thanks in advance!!!

Edited: 11 years ago


elFinder 2.1.50 in Upcoming Release

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Ennetb├╝rgen (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Websi...

Find out more about our Provider Spotlight

Log In