Joomla translate button next to edit button for GT Pro

Popular automatic website translation tool

Joomla translate button next to edit button for GT Pro

Postby Olaf » Tue Sep 18, 2012 11:26 am

The following steps enable a simple GTranslate button next to the edit button in the joomla frontend.
I'm using joomla 2.6 but it should also work with earlier versions:

1. Get access to your joomla install

2. Copy 'default.php' file from
components/com_content/views/article/tmpl/
to
/templates/<YOUR_TEMPLATE>/html/com_content/article/

Depending to you template you have to create the path structure '/html/com_content/article' and extend your template definition file by "<folder>html</folder>"

3. Open the file with you favourite editor and do a search for the line <li class="edit-icon">

4. Insert after the line you have found above:
<a href="<?php echo JURI::current()."?language_edit=1" ?>"><img src="YOUR_BUTTON.jpg" alt="GTranslate"/></a>

Your code snipplet should now look like this:
Code: Select all
...         
<li class="edit-icon">
<a href="<?php echo JURI::current()."?language_edit=1" ?>"><img src="YOUR_BUTTON.jpg" alt="GTranslate"/></a>
<?php echo JHtml::_('icon.edit', $this->item, $params); ?>
...


Keep in mind to maintain the used default.php file when updating joomla in case it's touched.

For the clicky generation ...
hf
Olaf
 
Posts: 1
Joined: Tue Sep 18, 2012 10:27 am

Re: Joomla translate button next to edit button for GT Pro

Postby Edvard » Fri Sep 21, 2012 5:33 pm

Thanks!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux