Youjoomla Support Forums (
-   Youjoomla Date (
-   -   Only english? (

haldoromar 11-06-2008 11:31 AM

Only english?

The script only shows month in english?

Here, in Brasil, \October\ is \Outubro\ (Out not Oct), \December\ is \Dezembro\ (Dez not Dec).

Can I easily change this? Or how I can hack it?

Thank you!

legrattonaute 11-11-2008 05:05 AM

Re:Only english?
Hi All

This plugin is very useful

I have the Same concern for European : date shall be displayed day-month-year. As i have change the yj_date.gif image by a transparent one - i think we can change now to \Day\ first - How do I hack the PHP file to set the good date display parameter ?

I have the most recent release and am running it on 1.5

Thanks ;)

hfarner 01-20-2009 04:33 PM

Re:Only english?
I m French and I m a same problem.
I suggest change code in yj-date.php


$format_date        = date(\d-m-Y\, @mktime(0, 0, 0, $date_display[1], $date_display[2], $date_display[0]));

$format_date        = strftime(\%d-%b-%Y\, mktime(0, 0, 0, $date_display[1], $date_display[2], $date_display[0]));
I use strftime because the date function return only in english format, with strftime you can set your country with

string setlocale  ( int $category  , array $locale  )
Thanks for plugin

Ps: sorry, my English is very bad:(

All times are GMT -4. The time now is 03:57 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.