WordPress.org

Ready to get started?Download WordPress

Forums

GTS Translation Plugin
Code remains in website after deletion (1 post)

  1. Zorten
    Member
    Posted 1 year ago #

    I started to receive a message in Russian that (when translated) states if users coming to my site wanted to have the site translated into Russian. Looking at the source, it seemed that the GTS plugin was the cause. I tried to delete the plugin but the code remains in the page page source. I can't find out where I can remove it. Any help?

    Below is the code snippit:

    <!-- GTS Plugin Version 1.2.2 -->
    <link rel="alternate" hreflang="ar" href="http://zorten.com/language/ar/?page_id=3513" />
    <link rel="alternate" hreflang="bg" href="http://zorten.com/language/bg/?page_id=3513" />
    <link rel="alternate" hreflang="ca" href="http://zorten.com/language/ca/?page_id=3513" />
    <link rel="alternate" hreflang="zh-CHS" href="http://zorten.com/language/zh-CHS/?page_id=3513" />
    <link rel="alternate" hreflang="zh-CHT" href="http://zorten.com/language/zh-CHT/?page_id=3513" />
    <link rel="alternate" hreflang="cs" href="http://zorten.com/language/cs/?page_id=3513" />
    <link rel="alternate" hreflang="da" href="http://zorten.com/language/da/?page_id=3513" />
    <link rel="alternate" hreflang="nl" href="http://zorten.com/language/nl/?page_id=3513" />
    <link rel="alternate" hreflang="et" href="http://zorten.com/language/et/?page_id=3513" />
    <link rel="alternate" hreflang="fi" href="http://zorten.com/language/fi/?page_id=3513" />
    <link rel="alternate" hreflang="fr" href="http://zorten.com/language/fr/?page_id=3513" />
    <link rel="alternate" hreflang="de" href="http://zorten.com/language/de/?page_id=3513" />
    <link rel="alternate" hreflang="el" href="http://zorten.com/language/el/?page_id=3513" />
    <link rel="alternate" hreflang="he" href="http://zorten.com/language/he/?page_id=3513" />
    <link rel="alternate" hreflang="hu" href="http://zorten.com/language/hu/?page_id=3513" />
    <link rel="alternate" hreflang="id" href="http://zorten.com/language/id/?page_id=3513" />
    <link rel="alternate" hreflang="it" href="http://zorten.com/language/it/?page_id=3513" />
    <link rel="alternate" hreflang="ja" href="http://zorten.com/language/ja/?page_id=3513" />
    <link rel="alternate" hreflang="ko" href="http://zorten.com/language/ko/?page_id=3513" />
    <link rel="alternate" hreflang="lv" href="http://zorten.com/language/lv/?page_id=3513" />
    <link rel="alternate" hreflang="lt" href="http://zorten.com/language/lt/?page_id=3513" />
    <link rel="alternate" hreflang="pl" href="http://zorten.com/language/pl/?page_id=3513" />
    <link rel="alternate" hreflang="pt" href="http://zorten.com/language/pt/?page_id=3513" />
    <link rel="alternate" hreflang="ru" href="http://zorten.com/language/ru/?page_id=3513" />
    <link rel="alternate" hreflang="sk" href="http://zorten.com/language/sk/?page_id=3513" />
    <link rel="alternate" hreflang="es" href="http://zorten.com/language/es/?page_id=3513" />
    <link rel="alternate" hreflang="sv" href="http://zorten.com/language/sv/?page_id=3513" />
    <link rel="alternate" hreflang="th" href="http://zorten.com/language/th/?page_id=3513" />
    <link rel="alternate" hreflang="tr" href="http://zorten.com/language/tr/?page_id=3513" />
    <link rel="alternate" hreflang="uk" href="http://zorten.com/language/uk/?page_id=3513" />
    <!-- GTS Language Detection Script -->
    <script type="text/javascript">

    // if there's an existing on load function already, need to store
    // it aside to make sure we don't break template's functionality.
    var gts_existingOnLoad = window.onload;

    window.onload = function() {

    if(gts_existingOnLoad) {
    gts_existingOnLoad();
    }

    var gts_acceptLang = 'ru';
    var gts_message = 'Хотите, чтобы прочитать эту веб-сайт на русском языке?';
    var gts_links = document.getElementsByTagName('link');

    if(document.cookie.indexOf('gts_skipAutoDetect') < 0) {
    for(i = 0; i < gts_links.length; i++) {
    if(gts_links[i].rel == 'alternate' && gts_links[i].hreflang == gts_acceptLang) {
    if(confirm(gts_message)) {
    window.location.href = gts_links[i].href;
    }
    else {
    document.cookie = 'gts_skipAutoDetect=yes';
    }
    }
    }
    }
    };

    http://wordpress.org/extend/plugins/gts-translation/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.