1. Jeremy Magne
  2. CTransifex
  3. Wednesday, 17 April 2013
  4.  Subscribe via email
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

[code type=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();
}
}[/code]

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
Attachments (1)
Responses (2)
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
Hey there!
Do you think that you can add those suggestions as pull requests on github?
https://github.com/compojoom/ctransifex

Thanks!
Daniel
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. CTransifex
  3. # 1
Accepted Answer Pending Moderation
Just thought you might be interested in reading this code:
http://paste.opensuse.org/2308fd44
This is what we've used before switching to ctransifex.
  1. more than a month ago
  2. CTransifex
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Last questions

verschiedene URL's für Kursübersicht einer Kategor
Hallo, ich habe eine Frage in Bezug auf SEO: ein externer Spezialist macht die...
3 Replies
Posted on Monday, 29 April 2024
_MATUKIO_NO_EVENTS appears in the frontend if no e
Hello, there ist still the problem, that on the frontpage appears COM_MATUKIO...
1 Replies
Posted on Sunday, 12 May 2024
  • New
  • Complete Uninstall to Work in J4??
    We have recently updated a site from Joomlav3 to v4 (4.4.2). Now when we go to m...
    7 Replies
    Posted on Tuesday, 30 April 2024
    Info about CMigrator for Joomla
    Hi i need to import a few thousand articles from a site made in wordprres to a ...
    0 Replies
    Posted on Tuesday, 07 May 2024
  • New
    • #CMigator
    Error on android phone
    Why its working good on Computer and if i try it with smartphones the map dosent...
    0 Replies
    Posted on Tuesday, 07 May 2024
  • New