Welcome to Geeklog, Anonymous Thursday, October 03 2024 @ 06:16 pm EDT
Geeklog Forums
CALENDER , please HELP FAST
Could someone help me with the language in events . I want to delete the namn of the day , because I can`t get the norwegian languages for the day : like Tuesday 07/02/06 , I will just have 07/02/06 , and not the day . Is there any place I can edit ???
12
13
Quote
Status: offline
Mu Satach
Forum User
Junior
Registered: 01/30/03
Posts: 16
the templates that the calendar use are in the layout folder
geeklog/public_html/layout/professional/calendar/
geeklog/public_html/layout/professional/calendar/dayview/
geeklog/public_html/layout/professional/calendar/weekview/
but after looking at the code, I don't know if that will fix the problem your talking about. It looks like the day & date are both apart of the same variable
{ currentday }
which is why your seeing Thursday, 02/02/06 instead of Torsdag, 02/02/06
Ni!
geeklog/public_html/layout/professional/calendar/
geeklog/public_html/layout/professional/calendar/dayview/
geeklog/public_html/layout/professional/calendar/weekview/
but after looking at the code, I don't know if that will fix the problem your talking about. It looks like the day & date are both apart of the same variable
{ currentday }
which is why your seeing Thursday, 02/02/06 instead of Torsdag, 02/02/06
Ni!
10
11
Quote
annon
Anonymous
does date settings in config.php have any effect ?
11
16
Quote
Status: offline
eg0master
Forum User
Regular Poster
Registered: 07/21/05
Posts: 73
Location:Stockholm
It works fine if you set the correct locale in config.php and have the norwegian locale installed on your webserver. Had similar problem with the swedish locale and had to install/compile a swedish locale in order to make it work.
Geeklog Plugins: http://plugincms.com
Geeklog Plugins: http://plugincms.com
11
11
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Senja: I will just have 07/02/06 , and not the day . Is there any place I can edit ???
The calendar (calendar_event.php, actually) uses $_CONF['shortdate'] which, by default = '%x'.
'%x' is the "preferred time representation for the current locale without the date". So this automatically includes the day. If you want something else, you'll have to piece it together from the list of those % placeholders, as listed in the documentation or in the PHP manual.
Something like $_CONF['shortdate'] = '%d/%m/%y';
bye, Dirk
10
10
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Sorry, it's using 'shortday' only for all-day events. For events that have a start and end time, it's using the current user's preferred date format (which they can set in their preferences) or $_CONF['date'] (for anonymous users and for users who left the setting at "system default").
bye, Dirk
bye, Dirk
8
11
Quote
Status: offline
eg0master
Forum User
Regular Poster
Registered: 07/21/05
Posts: 73
Location:Stockholm
Quote by Senja: I will try that.. My config.php is correct , with locale no_No , but I am not shure how to set my webserver to the norwegian locale ?
You do not need to set the webserver to the norwegian locale, it must only be available. If you're running a *nix webserver use 'locale -a' command to see all installed locales.
Geeklog Plugins: http://plugincms.com
12
12
Quote
Status: offline
Mu Satach
Forum User
Junior
Registered: 01/30/03
Posts: 16
Is your setting in the config.php file
or
on my site, "no_No" does not work, but "no_NO" does.
if that doesn't work then you'll need to contact the server admin, or if you are the admin, do some digging on how to install the locale
Ni!
Text Formatted Code
$_CONF['locale'] = 'no_No';Text Formatted Code
$_CONF['locale'] = 'no_NO';on my site, "no_No" does not work, but "no_NO" does.
if that doesn't work then you'll need to contact the server admin, or if you are the admin, do some digging on how to install the locale
Ni!
11
11
Quote
Status: offline
eg0master
Forum User
Regular Poster
Registered: 07/21/05
Posts: 73
Location:Stockholm
Exactly, the locale string is case sensitive.
Geeklog Plugins: http://plugincms.com
Geeklog Plugins: http://plugincms.com
10
8
Quote
All times are EDT. The time is now 06:16 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content