Forum Archive - Joomla translate button next to edit button for GT Pro

Joomla translate button next to edit button for GT Pro
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
Thanks!

SIMILAR TOPICS

GTranslate 3.7.4, Joomla 3.9.3 - doGTranslate is not definedFeb 22, 2019 12:34 pmReplies: 1Post by: oase
wordpress amp link not translateDec 31, 2016 10:11 amReplies: 12Post by: besybuy
Translate website to any specific language, on page loadJan 19, 2019 6:49 amReplies: 1Post by: Leaon7756
Joomshaper Pagebuilder buttons Link edit problemJan 11, 2019 10:04 amReplies: 1Post by: kumatest
Best way to translate a page in WordPress?Jan 7, 2019 11:10 amReplies: 3Post by: Tonnystark

Try GTranslate with a free 15 day trial