Youjoomla Support Forums (http://www.youjoomla.com/joomla_support/index.php)
-   Youjoomla Date (http://www.youjoomla.com/joomla_support/forumdisplay.php?f=83)
-   -   Only english? (http://www.youjoomla.com/joomla_support/showthread.php?t=1942)

haldoromar 11-06-2008 12:31 PM

Only english?
 
Hi,

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 06: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 05:33 PM

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

Code:

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

$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
Code:

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 02:04 PM.

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