Hello all
I opened another topic cause I asked in an old one and don't know if anybody saw that. I'm kinda lost here

Older thread:
http://www.WebsiteBaker.org/forum/index.php/topic,25116.0.htmlSo i have a problem with procalendar droplet changing language on a multilanguage site.
I went through all language files in my WB and couldn't find the right one. I dont know from where the droplet is fetching language...
So far I have made two same droplets one for the Slovenian "SI" (eventlistslo) and one for English "EN" (eventlisteng) procalendar. And I use two procalendar modules one for each language.
my droplet: SI
//:Show next $max events
//:only section_id of procal installation is required
//:get categorie id from categorie link or form procal database
//:usage: [[eventlist?section_id=<xx>&datestart=<yyyy-mm-dd>&dateend=<yyyy-mm-dd>&kat=<categorie id>&max=<max entries to show>]]
// Get events
global $database, $wb;
require_once(WB_PATH."/modules/procalendar/functions.php");
// Show how many items, defaults to 10?
if ( !isset($max) ){ $max = 10; };
// year and month and section defaults
if(!isset($datestart)) {$datestart = date('Y-n-d', time()); }
if(!isset($dateend)) {$dateend = date('Y-n-d', time()); }
if(!isset($section_id)) {$section_id = 0 ; }
if(isset($_GET['categorie'])) {$kat = $_GET['categorie'];}
// Fetch base page link, if event_id = set
$page_id = 0;
$page_link ='';
if ($section_id<>0) {
$sql = "SELECT link FROM ".TABLE_PREFIX."sections AS s, ".TABLE_PREFIX."pages AS p WHERE s.section_id = '".$section_id."' AND s.page_id = p.page_id LIMIT 1";
$result = $database->query($sql);
while( $row = $result->fetchRow() ) {
$page_link = page_link($row['link']);
}
}
// Fetch the items
if (!isset($actions) || empty($actions))
$actions = fillActionArray($datestart, $dateend, $section_id);
$mod_list = "";//print_r($actions);
// KEVIN NEW
$categories = array();
if (is_array($actions)){
foreach($actions as $row){
$categories[$row['acttype']] = array($row['act_name'],$row['act_format'],$row['acttype']);
if (isset($kat) && $kat !== $row['acttype']) continue;
$page_url = $page_link.'?id='.$row['id'].'&detail=1';
}
}
$mod_list.= '<div class="proCalCategoryContainer"><div class="proCalFilter">Prikaži Samo:</div>';
foreach ($categories as $cat) {
$link = '?categorie='.$cat[2];
$mod_list.='<div class="proCalCategory" style="background:'.$cat[1].'";><a href="'.$link.'">'.$cat[0].'</a></div>';
}
$mod_list.='<div class="proCalCategory"><a href="?">Prikaži Vse</a></div><div class="clear"></div></div>';
// END KEVIN NEW
$mod_list .= '<table class="proCalTable">';
$printDay = "";
$categories = array();
if (is_array($actions)){
foreach($actions as $row){
$categories[$row['acttype']] = array($row['act_name'],$row['act_format'],$row['acttype']);
if (isset($kat) && $kat !== $row['acttype']) continue;
// Build url like : pages/kalendar.php?id=2&detail=1
$page_url = $page_link.'?id='.$row['id'].'&detail=1';
if ($row['date_start'] !== $printDay) {
$printTime = "";
if ($printDay !== "") $mod_list.= '</td></tr>';
$printDay = $row['date_start'];
$mod_list.= '<tr><td colspan = 2><div class="proCalDate"><span class="proCalDateBig">'.date('l', strtotime($printDay)).' </span><span class="proCalDateSmall">'.date('F j', strtotime($printDay)).'</span></div>';
}
if ($row['time_start'] !== $printTime) {
$printTime = $row['time_start'];
$mod_list.= '</td></tr><tr><td class="proCalTime"><span class="proCalTimeStart">'.substr($printTime,0,5).'</span></td><td>';
//$mod_list.= '</td></tr><tr><td class="proCalTime"><span class="proCalTimeStart">'.substr($printTime,0,5).'</span></td><td>';tr><tr><td width="40px"><span class="timeStart">'.substr($printTime,0,5).'</span></td><td>';
}
$mod_list .= '<p class="proCalBand" style="background:'.$row["act_format"].'";><a target="_blank" href="'.$page_url.'"><b>'.$row["name"].'</a></p>'; //.$page_url.
}
}
$mod_list.= '</td></tr></table>';
$mod_list.= '<div class="proCalCategoryContainer"><div class="proCalFilter">Prikaži Samo:</div>';
foreach ($categories as $cat) {
$link = '?categorie='.$cat[2];
$mod_list.='<div class="proCalCategory" style="background:'.$cat[1].'";><a href="'.$link.'">'.$cat[0].'</a></div>';
}
$mod_list.='<div class="proCalCategory"><a href="?">Prikaži Vse</a></div><div class="clear"></div></div>';
return $mod_list;
Problem is that weekdays and dates are always in english.
And another question, I want is to have a little image with some class (to style it) in every event (with the same link as event) and don't know how to modify the droplet to do that the same as shown on a posted image. Can this be done?
I think somewhere here: ??
$mod_list .= '<p class="proCalBand" style="background:'.$row["act_format"].'";><a target="_blank" href="'.$page_url.'"><b>'.$row["name"].'</a></p>'; //.$page_url.
}
Image should be uploaded when you create a new event through a custom "add image" field which I already have. (CUSTOM4).
I posted images so you can see what I mean.
I tried everything I could think off, but I'm not a coder so I'm staying stuck here.
Any help would be really appreciated
Thank you very much
R.