Calendar 0.6

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Akrabat

Re: Calendar 0.6

Post by Akrabat »

OK. Try creating a separate php file to find the name of the DE locale on your system:

The file should contain the following

Code: Select all

<pre>
<?php
system('locale -a'); // for all locales
//system('locale -a | grep ru'); // for russian locales
?>
</pre>
Scan the list for the ones that look related to DE.

Then try:

Code: Select all

<?php
setlocale('LC_ALL', '{string found from list goes here}');
?>
Maybe that'll work !
Alex_Leipzig

Re: Calendar 0.6

Post by Alex_Leipzig »

I did all that, but it still doesn't work.
Now, there's even a dedicated German thread on that issue... (http://forum.cmsmadesimple.org/index.ph ... 883.0.html)
Akrabat

Re: Calendar 0.6

Post by Akrabat »

You've got me stumped. Sorry :(
Alex_Leipzig

Re: Calendar 0.6

Post by Alex_Leipzig »

Hi akrabat,

I could fix it by using a dirty trick and manually adding the day names in phpcalendar.php - but, they are shortened to 3 chars instead of 2... better than nothing.

is there a way to (entirely) localise the calendar admin interface via the language file? it's not properly done right now.
piratos

Kalender 1.0 deutsch

Post by piratos »

Show this (in german)
http://forum.cmsmadesimple.org/index.ph ... 955.0.html

This is my module Kalender in german based on the Calendar 0.6 from you.

The most i have new progranmmed.

There is no need to use setlcoal.

All other languages can used if the language-file  was translated.
badhoy

Re: Calendar 0.6

Post by badhoy »

I don't see 'Feb' in the month drop down.  Anyone else have this problem?
Last edited by badhoy on Thu Sep 01, 2005 1:49 am, edited 1 time in total.
Akrabat

Re: Calendar 0.6

Post by Akrabat »

badhoy wrote: I don't see 'Feb' in the month drop down. Anyone else have this problem?
When creating a new event?
badhoy

Re: Calendar 0.6

Post by badhoy »

Akrabat wrote:
badhoy wrote: I don't see 'Feb' in the month drop down. Anyone else have this problem?
When creating a new event?
Yes, when creating a new event.  OK, this is weird.  Yesterday I didn't have 'Feb' when creating or editing an event, now it is there.  I swear I did not make any changes to anything in CMSMS.  Problem solved, but who knows how.  thx
Hucki (cms-noob)

Re: Calendar 0.6

Post by Hucki (cms-noob) »

Hi all!

I have a similar Problem as described above:

When trying to add a new event, i only see every second month in the month-combobox:

Code: Select all

Jan
Mar
May
Aug
Oct
Dec
After looking through the calendar.module.php i found something that mad me think:

Original (v0.6.1):

Code: Select all

$month_array = array();
		for($i = 0; $i < 12; $i++)
		{
			$month_name = strftime('%b', mktime(12,0,0,$i+1));
			$month_number = sprintf('%02d', $i+1);
			$month_array[$month_name] = $month_number;
		}
there is an incrementation of '$i' in the for-line ($i++) and another one in the month_name and month_number ($i+1). After deleting the '+1' from those lines, i still got the same fault, but the combobox was starting with 'Dec' and ending with 'Oct'

One suggestion would be:
  • badhoy had a similar problem (Feb was gone) on Aug, 30th and the problem was solved on Sep, 1st - without doing anything.
  • I have this problem on Oct, 31st - will it be gone In November? And has badhoy his problem again today?
Maybe it's an issue with even or uneven month_number?
Don't know?
But i hope anybody can help me. (and perhaps i could help with my ideas)

Greetings,

Hucki
--
Excuse my bad english ;-(
Akrabat

Re: Calendar 0.6

Post by Akrabat »

it's certainly not the $+1 as that doesn't increment $i. It's more likely to be an error in the mktime() call. Try changing

$month_name = strftime('%b', mktime(12,0,0,$i+1));

to

$month_name = strftime('%b', mktime(12,0,0,$i+1), 1);
Hucki (cms-noob)

Re: Calendar 0.6

Post by Hucki (cms-noob) »

Thank you akrabat for your quick answer, but now i get real mess:
I get the following error (at least i get it twelve times, and not six month as before ;) ):

Code: Select all

Warning: Wrong parameter count for strftime() in /www/htdocs/v163186/vwa/modules/Calendar/Calendar.module.php on line 552
This is my line 552:

Code: Select all

$month_name = strftime('%b', mktime(12,0,0,$i+1),1);
...

I changed your suggestion to the following, as you said, that it could be an error in the mktime() call:

Code: Select all

$month_name = strftime('%b', mktime(12,0,0,$i+1,1));
-> included the ',1' in the brackets of the mktime() call....

....and it works perfectly well!

THX!
So. perhaps you should include this change in the next release. Now i'm going to try a little with your calendar.
(if you want to have a look at my project: vwa.burgerschuetzen.de - but its not yet productiv and still _very_ beta - the site shall become a file-/date-/forum-resource for me and my co-students).

Greetings from germany,

Hucki
--
and again: Excuse my bad english ;(
Akrabat

Re: Calendar 0.6

Post by Akrabat »

oops - sorry! I miscounted brackets !

You should take a look at Calendar 0.7alpha when you get a chance too as it's far more customisable.
Locked

Return to “Modules/Add-Ons”