Joomla translate button next to edit button for GT Pro
Sep 18, 2012 7:26 am by Olaf
Sep 18, 2012 7:26 am by Olaf
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:
...
<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
Re: Joomla translate button next to edit button for GT Pro
Sep 21, 2012 1:33 pm by Edvard
Sep 21, 2012 1:33 pm by Edvard
Thanks!
SIMILAR TOPICS
GTranslate 3.7.4, Joomla 3.9.3 - doGTranslate is not defined | Feb 22, 2019 12:34 pm | Replies: 1 | Post by: oase |
wordpress amp link not translate | Dec 31, 2016 10:11 am | Replies: 12 | Post by: besybuy |
Translate website to any specific language, on page load | Jan 19, 2019 6:49 am | Replies: 1 | Post by: Leaon7756 |
Joomshaper Pagebuilder buttons Link edit problem | Jan 11, 2019 10:04 am | Replies: 1 | Post by: kumatest |
Best way to translate a page in WordPress? | Jan 7, 2019 11:10 am | Replies: 3 | Post by: Tonnystark |