Hi,
Great extension. Thank you for providing this, it is very helpful.
Here is a small contribution to the project:
in the project detail view, I'd suggest to add 3 simple lines of code to add the current project to the breadcrumb:
/components/com_ctransifex/views/project/view.html.php
class ctransifexViewProject extends JViewLegacy {
public function display() {
$this->item = $this->get('Item');
/* CUSTOM CHANGE BEGIN */
$app = JFactory::getApplication();
$pathway = $app->getPathway();
$pathway->addItem($this->item->title);
/* CUSTOM CHANGE END */
$this->languages = $this->get('Languages');
$document = JFactory::getDocument();
$document->setTitle($document->getTitle() . ' ' . JText::sprintf('COM_CTRANSIFEX_TRANSLATIONS_FOR_PROJECT',$this->item->title));
parent::display();
}
}
I also wrote a small router.php file (attached) to transforms urls
?view=project&id=xx
=> /project-alias/
?task=download.download&language=xx
=> /project-alias/download/xx-XX
File Attachment:
File Name:
router.zipFile Size: 1 KB