$parameters['list'][$item->{$r->key}]->title = multilingual_filter_title($cgi->_collection, $item->{$r->key}); } } uasort($parameters['list'], 'multilingual_sort'); } else { foreach ($list as $item) { $parameters['list'][$item->id] = $tr->getByID($item->id); $r = new Rex($parameters['list'][$item->id]->collection); $parameters['list'][$item->id]->title = multilingual_filter_title($parameters['list'][$item->id]->collection, $parameters['list'][$item->id]->pkey); $parameters['list'][$item->id]->_collection = $parameters['list'][$item->id]->collection; $parameters['list'][$item->id]->collection = $parameters['collections'][$parameters['list'][$item->id]->collection]; } uasort($parameters['list'], 'multilingual_sort'); } page_title(intl_get('Translations')); $r = new Rex(false); $r->addFacet('status', array('display' => intl_get('Translation Status'), 'type' => 'select', 'values' => $parameters['statuses'], 'all' => false)); if ($cgi->_status == 'untranslated') { $r->addFacet('collection', array('display' => intl_get('Content Type'), 'type' => 'select', 'values' => $parameters['collections'], 'all' => false)); } else { $r->addFacet('collection', array('display' => intl_get('Content Type'), 'type' => 'select', 'values' => $parameters['collections'])); } /*$r->addFacet ('team', array ( 'display' => intl_get ('Owned by Team'), 'type' => 'select', 'values' => $teams, ));*/ $r->addFacet('lang', array('display' => intl_get('Language'), 'type' => 'select', 'values' => multilingual_get_langs())); $parameters['facets'] = $r->renderFacets(); echo template_simple('index.spt', $parameters); //info ($parameters);