OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
SefTranslate save language when page changed (0 viewing) 

Joomla Translate component support

Go to bottom Favoured: 0

SefTranslate save language when page changed

admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
SefTranslate save language when page changed 6 Years, 5 Months ago
Karma: 102  
Hi

Code:

 
I downloaded the free version of SefTranslate (https://ordasoft.com/sef-translate-joomla-translation-component ). It works very good, but if I select a foreign language, when I change page it come back to the default language.
How can I do to maintain the selected language in all the pages?
Thank you



We do so special, with this you will not have some error with redirect (translate) without end. We see some sites where there are were errors,
But you may "Turn on" this if go to Sef Translate module code.

1. Please update to last version of "Sef transalte component" ordasoft.com/sef-translate-joomla-translation-component

2. Please with help FTP open file:
{your site}/modules/mod_seftranslate/tmpl/default.php

3. find code
Code:

      for(var i=0;i<tmpForms.length;i++){
        if(tmpForms[i].className=='goog-te-combo'){
          translateForm=tmpForms[i];
          translateForm.setAttribute('id',"GoogleTranslateForm");
          var newlabel = document.createElement("label");
          newlabel.setAttribute("for","GoogleTranslateForm");
          newlabel.innerHTML = "Google Site Translate Form";
          translateForm.parentElement.appendChild(newlabel);    
          //document.getElementsByTagName('body')[0].appendChild(newlabel) ;
          break;
        }
      }

return ;



and replace it to code:
Code:

      for(var i=0;i<tmpForms.length;i++){
        if(tmpForms[i].className=='goog-te-combo'){
          translateForm=tmpForms[i];
          translateForm.setAttribute('id',"GoogleTranslateForm");
          var newlabel = document.createElement("label");
          newlabel.setAttribute("for","GoogleTranslateForm");
          newlabel.innerHTML = "Google Site Translate Form";
          translateForm.parentElement.appendChild(newlabel);    
          //document.getElementsByTagName('body')[0].appendChild(newlabel) ;
          break;
        }
      }



Please backup this file first

Regards
Andrew
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»