Forum

Thread tagged as: Problem

Perch app Events setlocale

hello, i using events app and trying show calendar in my language (slovakia), i use setlocale(LC_TIME, 'sk_SK'); UTF-8 using too. but problem is with diacritic

for example: december 2015 - Is OK január 2016 - not showing, field is empty this problem is with every word with special char (á,ú,š...)

U can see it here: https://relaxspacenter.sk/kalendar-eventov?d=2015-11

thanks for help

Pavol Krchnavy

Pavol Krchnavy 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

That's surprising. Do you get any errors in your log?

i used define('PERCH_DEBUG', true); but i dont see any errors

//edit

just now i find in event app in admin

Array
(
    [type] => 2
    [message] => setlocale() expects at least 2 parameters, 1 given
    [file] => /nfsmnt/hosting1_1/0/9/09a1906d-4a47-427b-8abf-ece9653fe0bc/relaxspacenter.sk/web/perch/addons/apps/perch_events/PerchEvents_Event.class.php
    [line] => 3
)
Drew McLellan

Drew McLellan 2638 points
Perch Support

What output do you get when it fails?

i add output debug too u can see it on link which i type in first post

//edit i used:

setlocale(LC_ALL, 'sk_SK.UTF-8');

finally i fix it and working in calendar but in event is still in english "Friday"

ok i use format="%A, %e. %B %Y" in event template and working :) thanks for help