Hi,
Just to say that piCal is a great module.
I have made a dutch (nederlands) translation.
If you want it, just say so, and I'll mail it to you.
A question though,
If I use the "coming events" block the date of events is displayed as month/day (today would be 11/6).
That is not how we display it over here, we display it as 6/11 ... being day/month.
How can i change this
Thank you for your translation.
At first, I have to say "use piCal >= 0.502".
I have improved aroud locales.
New constants added.
define('_PICAL_LOCALE','en_US') ;
define('_PICAL_STRFFMT_DATE','%x') ;
define('_PICAL_FMT_MD','%2$s %1$s') ;
"events on the day" or "events after the day" uses _PICAL_FMT_MD.
'%2$s %1$s' means "day month"
'%1$s %2$s' means "month day"
Perhaps the LOCALE of dutch is 'dutch'.
If you finish translating, send it to me please.
The first problem still remains in blocks "coming events" / "events after"
http://www.peak.ne.jp/xoops/uploads/img3fae36322be3b.jpgI have updated my pical version.
I have added the three above mentioned lines to pical_constants.php. But nothing helps.
define('_PICAL_LOCALE','nl_NL') ;
define('_PICAL_STRFFMT_DATE','%x') ;
define('_PICAL_FMT_MD','%2$s %1$s') ;
define('_PICAL_DTFMT_TIME','a g:i') ;
define('_PICAL_DTFMT_DATE','j M Y (D)') ;
define('_PICAL_DTFMT_MD','j M') ;
define('_PICAL_FMT_YMD','%3$s %2$s %1$s') ;
define('_PICAL_FMT_YMW','%3$s %2$s %1$s') ;
define('_PICAL_FMT_YEAR_MONTH','%2$s %1$s') ;
Second problem is in the "Scheduler"/"Detail view"
http://www.peak.ne.jp/xoops/uploads/img3fae37b209a7c.jpgAs you can see, the name of the day (Wed) is in English, although pical_vars.phtml looks like this:
// Can't use tags (for options & minicalendar)
$this->week_short_names = array('Zo','Ma','Di','Wo','Do','Vr','Za','Zo') ;
// Can use tags (for Monthly & Weekly View)
$this->week_middle_names = array('Zo','Ma','Di','Wo','Do','Vr','Za','Zo') ;
I hope you have a solution for these problems. If you do I can send you the translation.
hi Chimpel.
Quote:
The first problem still remains in blocks "coming events" / "events after"
Thank you for your finding this bug.
This code will be fixed in 0.506.
The langauage files need not to be changee or added.
Quote:
Second problem is in the "Scheduler"/"Detail view"
This is the issue of Locale.
Probably, "%x" means "date month year (English Dayname)" in "nl_NL".
see:
http://jp.php.net/strftimeand change _PICAL_STRFFMT_DATE into your favour style.
Quote:
Probably, "%x" means "date month year (English Dayname)" in "nl_NL".
When I change "%x" in, for example, "%D", nothing changes in the "Detail view". So I don't think this is the problem.
If so, probably your piCal.php is old.
Yep,
You're right. Something must 've gone wrong in the udpate. It's working now, except the bug in the blocks of course, but as you said, this will be solved in version 0.506. I'm looking forward to it.
The dutch language file has been sent to you.