gozdehan
Forum Replies Created
-
Forum: Plugins
In reply to: [Prisna GWT - Google Website Translator] Set default language to showBtw this code is working in browser console.
I share with you link:
https://www.irmakoyuncak.com/ro/
Can you look please?
Thanks!
Forum: Plugins
In reply to: [Prisna GWT - Google Website Translator] Set default language to showHi again,
Yes, I’m sure. But it doesn’t work. So I updated the flag template code like this :
<li class=”prisna-gwt-flag-container prisna-gwt-language-{{ language_code }}”>
So I set id the a element. After I wrote the code like this to On after load block:
var ro = document.getElementById(‘gwt-ro’);
ro.click();But it doesn’t work.
Forum: Plugins
In reply to: [Prisna GWT - Google Website Translator] Set default language to showI want my website to load automatically in Romanian. I set the Website’s language to Romanian in plugin. After I wrote the below code to Advanced > General > Javascript callbacks > On after load
window.PrisnaGWT={_fire_event:function(a,b){try{if(document.createEvent){var c=document.createEvent(“HTMLEvents”);c.initEvent(b,true,true);a.dispatchEvent(c)}else{var c=document.createEventObject();a.fireEvent(“on”+b,c)}}catch(e){console.log(“Prisna GWT: Browser not supported!”)}},translate:function(a){var b;var c=document.getElementsByTagName(“select”);for(var i=0;i<c.length;i++)if(c[i].className==”goog-te-combo”)b=c[i];if(!b)return;b.value=a;this._fire_event(b,”change”)},run:function(a){setTimeout(function(){if(jQuery(“.goog-te-combo option”).length>0)window.PrisnaGWT.translate(a);else window.PrisnaGWT.run(a)},200)}};
window.PrisnaGWT.run(“ro”);But my website’s all content load Turkish.
Help me please
Forum: Plugins
In reply to: [Prisna GWT - Google Website Translator] Set default language to showHi, I tried this solution, but it didn’t work. Can you help me please?