gnopaste

Sorry for this ugly message. We are searching for some translators.
Please take a look here
Thanks to all translators, you're doing a great job!

Name
Woeka
Scriptlanguage
Java
Tabwidth
4
Date
01/13/2010 02:51:14 pm
IP
193.173.109.247

Updated script functions function changeLanguage() and function getLanguage() for island control Version: 3.4

function changeLanguage()
{    
    var savelang = GM_getValue('Island_controlLang')
    var inputLang = prompt(lang.optiontxt +"?            en, es, fr, it, pl, ru, nl",savelang);
    if (inputLang == null){return;}
    
    inputLang = inputLang.toLowerCase();

    if (inputLang!="it" && inputLang!="es" && inputLang!="pl" && inputLang !="ru" && inputLang !="fr" && inputLang !="en" && inputLang!="nl")
    {
        alert("The Language "+ inputLang +" is not supported")
        inputLang = "en";
    }
    GM_setValue('Island_controlLang',inputLang);
    lang = getLanguage();
    document.getElementById('Islandlanguage').textContent = lang.optiontxt
    document.getElementById('Island_firsttxt').textContent = lang.optiontxt1;
    document.getElementById('Island_secondtxt').textContent = lang.optiontxt2;
}

function getLanguage()
{
    idlang = GM_getValue('Island_controlLang')    // check storage language
    if (idlang == null)        // check browser language
    {
        idlang = navigator.language;
        GM_setValue('Island_controlLang',idlang);
    }
    if (idlang!="it" && idlang!="es" && idlang!="pl" && idlang!="ru" && idlang!="fr" && idlang!="nl") {idlang = "en";}
    
    var langs =
    {
        it:
        { // Italian texts by myself:
            infotext: "I giocatori che sfruttano le risorse dell'isola devono contribuire al suo sviluppo donando legname in base "+
                    "ai lavoratori e alla grandezza delle città. Le quote di donazione si possono impostare per " +
                    "ogni falegnameria e bene di lusso." +
                    "<center>Il contributo che ogni giocatore deve donare &egrave; regolato dalla seguente formula:<br />"+
                    "<b>Donazione = (Ql * Lavoratori) + (Qm * LivelloMunicipio)</b><br />"+
                    "<b>Ql</b> = quota per ogni lavoratore | <b>Qm</b> = quota per ogni livello del municipio</center>"+
                    "<center>Legenda:</center>",
            info1ico: "Ha donato legna a sufficenza",
            info2ico: "Ha donato meno legna del dovuto, ma gli resta solo il 10% da donare.",
            info3ico: "Sfrutta le donazioni altrui",
            scorewrk: "Quota lavoratori",
            scorelvl: "Quota livello Municipio",
            chkboxvl: " Valutare tutte le donazioni fatte nell'isola dai giocatori",
            stat1:    "Per raggiungere il livello",
            stat2:    "mancano",
            stat31:    "e bastano le donazioni mancanti dei giocatori attivi.",
            stat32:    "e servono anche le donazioni mancanti dei giocatori in vacanza.",
            stat33: "ed &eacute; necessario aumentare le quote di donazione.",
            stat33wrk: " per ogni lavoratore. ",
            stat33lvl: " per ogni livello del municipio",
            statupgrd1: " Il livello",
            statupgrd2: "&egrave in costruzione.",
            statinfo1: "Nell'isola esistono",
            statinfo2: "citt&agrave; e il livello medio del municipio &eacute;",
            statinfo3: "I giocatori hanno donato in totale",
            statinfo4: " e ci sono",
            statinfo5: "lavoratori. ",
            alertisland: "Si consiglia di visitare l'isola.\n In questo modo saranno visibili i giocatori in vacanza e inattivi.",
            dateisland: " Agg. Isola: ",
            alertres1: "Si consiglia di visitare ",
            alertres2: "In questo modo sara possibile fare una valutazione complessiva delle donazioni dell'isola.",
            tradegood: " la Falegnameria",
            resource: " il Bene di lusso",
            dateresource: " Agg. ",
            errortxt: "Island_Control ha generato un errore. Per favore contattatemi su http://ikariamscript.forumfree.net/ per risolvere il problema. Phate \n\n",
            update: "nuova versione ",
            optiontxt1: "Visualizza i nomi dei giocatori nelle citt&agrave; dell'isola: ",
            optiontxt2: "Visualizza i link delle risorse nell'icona mostra isola: ",
            optiontxt: "Seleziona la lingua",
            msgAgora: "Spedisci messaggio in Agorà",
        },
            
        es:
        { // Spanish traslate by Rohcodom
            infotext: "Los jugadores que usen los recursos de la isla, deberían contribuir a su crecimiento donando material de construcción de acuerdo a "+
                    "la cantidad de trabajadores y al tamaño de sus ciudades. Las donaciones puedes ser configuradas para cada " +
                    "aserradero y cada cantera de bienes de lujo." +
                    "<center>La contribución que cada jugador debe donar está regulada por la siguiente fórmula:<br />"+
                    "<b>Donación = (Qw * trabajador) + (Qt * nivel del muro de la ciudad)</b><br />"+
                    "<b>Qw</b> = Porción por cada trabajador | <b>Qt</b> = Porción por cada nivel del muro de la ciudad</center>"+
                    "<center>Simbología:</center>",
            info1ico: "¡Muy bien!",
            info2ico: "Sanguijuela, pero está a 10% de hacer lo correcto.",
            info3ico: "Sanguijuela total",
            scorewrk: "Porción por trabajador",
            scorelvl: "Porción por nivel del muro de la ciudad",
            chkboxvl: " Tomar en cuenta las donaciones globales de los jugadores en la isla",
            stat1:    "A fin de alcanzar el nivel",
            stat2:    "faltan",
            stat31:    "y los valores de las porciones actuales son los correctos.",
            stat32:    "y también se consideran las donaciones de los jugadores en modo vacaciones.",
            stat33: "y es necesario incrementar los valores de las porciones actuales:",
            stat33wrk: " por cada trabajador. ",
            stat33lvl: " por cada nivel del muro de la ciudad",
            statupgrd1: " El nivel",
            statupgrd2: " está en construcción.",
            statinfo1: "En la isla hay",
            statinfo2: "ciudades y el promedio de nivel de los muros de las ciudades es",
            statinfo3: "En total, los jugadores han donado ",
            statinfo4: " y tienen",
            statinfo5: "trabajadores. ",
            alertisland: "Es mejor que visites la isla.\n De esta forma, los jugadores inactivos y en modo vacaciones serán tomados en cuenta.",
            dateisland: " Actualización de la isla: ",
            alertres1: "Es mejor que visites ",
            alertres2: "de esta forma, será posible hacer una evaluación general de las donaciones en la isla.",
            tradegood: " el aserradero",
            resource: " la cantera de bienes de lujo",
            dateresource: " Actualizado ",
            errortxt: "Island_Control ha generado un error. Visita http://ikariamscript.forumfree.net para informar del problema. Phate72 \n\n",
            update: "Nueva versión ",
            optiontxt1: "Mostrar el nombre del jugador en la vista de la isla: ",
            optiontxt2: "Mostrar enlaces a los recursos en el icono de la isla: ",
            optiontxt: "Elegir idioma",
            // english
            msgAgora: "Send message to Agora",
        },
        
        fr:
        { // Francais traduit par BorisLeHachoir
            infotext: "Les joueurs qui utilisent les ressources de l'île devraient contribuer à son développement par un don de matériaux de construction en fonction "+
                    "du nombre de travailleurs et de la taille des villes. Les dons peuvent être configurés "+
                    "pour chaque scierie et chaque tas de produits de luxe." +
                    "<center>La contribution de chaque joueur est régulée par la formule suivante :<br />"+
                    "<b>Donation = (Qw * travailleur) + (Qt * niveau de la ville)</b><br />"+
                    "<b>Qw</b> = Partager par chaque travailleur | <b>Qm</b> = partager par chaque ville"+
                    "<center>Légende :</center>",
            info1ico: "Très bien !",
            info2ico: "Radin, mais seulement 10% des ressources peuvent être données.",
            info3ico: "Gros radin.",
            scorewrk: "Donné pour chaque travailleurs",
            scorelvl: "Donné pour chaque niveau de ville ville",
            chkboxvl: "Estimer tous les dons de joueur dans l'île",
            stat1:    "Afin d'atteindre le niveau",
            stat2:    "il reste",
            stat31:    "et les dons sont suffisants.",
            stat32:    "and they serve also the donations lacking the players in vacation mode.",
            stat33: "et il est nécessaire d'ajouter les dons suivants.",
            stat33wrk: " pour chaque travailleur. ",
            stat33lvl: " tout niveau de ville",
            statupgrd1: " Le niveau",
            statupgrd2: "est en construction.",
            statinfo1: "Sur l'île, il y a",
            statinfo2: "villes et le niveau moyen des villes est de",
            statinfo3: "Les joueurs ont donné sur le tas ",
            statinfo4: " et il y a ",
            statinfo5: "travailleurs. ",
            alertisland: "Tu ferais mieux de visiter l'ile, pour que les joueurs inactifs mode vacances seront visibles.",
            dateisland: " Mise a jour de l'ile ",
            alertres1: "Tu ferais mieux de visiter ",
            alertres2: " dans le but de faire une évaluation générale de la donation de l'île.",
            tradegood: " la scierie",
            resource: " le dépot des ressources de luxe.",
            dateresource: " Mise à jour ",
            errortxt: "Il y a eu un bug. Merci de prévenir sur http://ikariamscript.forumfree.net/ pour résoudre le problème. Phate72 \n\n",
            update: "nouvelle version ",
            optiontxt1: "Afficher le nom du joueur sur l'île: ",
            optiontxt2: "Afficher les liens vers les ressources sur l'icône pour l'île: ",
            optiontxt: "Choisir la langue",
            // english
            msgAgora: "Send message to Agora",
        },
        
        ru:
        { // Russian translate by Disfated
            infotext:    "Игроки добывающие ресурсы этого острова должны участвовать в разработке месторождений острова через пожертвования стройматериала в соответсвии с количеством рабочих, добывающих ресурсы, и размером городов.<center>Размеры пожертвований, которые должен вносить каждый игрок, определяются по следующей формуле:<br /><br /><b>Пожертвование = (Q<sub>w</sub> × ЧислоРабочих) + (Q<sub>t</sub> × УроверьРатуши)</b><br /><b>Q<sub>w</sub></b> – Взнос за каждого рабочего<br /><b>Q<sub>t</sub></b> – Взнос за каждый уровень ратуши</center><br /><center>Обозначения:</center>",
            info1ico:    "Пример для подражания!",
            info2ico:    "Халявщик (задолжал не более 10%)",
            info3ico:    "Паразитирующий дармоед",
            scorewrk:    "Взнос за каждого рабочего",
            scorelvl:    "Взнос за каждый уровень ратуши",
            chkboxvl:    " Расчитывать взносы в общем по острову",
            stat1:        "Для следующего уровня месторождения (",
            stat2:        ") необходимо ",
            stat31:      ".<br /><span style='color: green'>Текущая общая задолженность по взносам активных игроков достаточна для этого.</span>",
            stat32:      ".<br /><span style='color: orange'>Текущая общая задолженность по взносам всех игроков, включая неактивных, достаточна для этого.</span>.",
            stat33:      ".<br /><b style='color: red'>Необходимо увеличить размеры пожертвований до уровня:</b>",
            stat33wrk:    " за каждого рабочего.<br />",
            stat33lvl:    " за каждый уровень ратуши.",
            statupgrd1:  " В процессе улучшения до уровня ",
            statupgrd2:  "!",
            statinfo1:    "На острове расположено ",
            statinfo2:    " городов со средним уровнем ратуши ",
            statinfo3:    "<br />На данном месторождение за все время было пожертвовано ",
            statinfo4:    ", на нем занято ",
            statinfo5:    "рабочих.<br />",
            alertisland:  "Для отображения неактивных игроков и игроков находящихся в режиме отпуска необходимо зайти на страницу острова.",
            dateisland:  " Актуальность Остров: ",
            alertres1:    "Для того, чтобы расчитать взносы на всем острове необходимо зайти на страницу",
            alertres2:    "",
            tradegood:    " лесопилки этого острова",
            resource:    " добычи дополнительного ресурса этого острова",
            dateresource: " Актуальность ",
            errortxt:    "Во время выполнения скрипта Island_Control произошла ошибка. Пожалуйста, свяжитесь с автором для решения этой проблемы по адресу http://ikariamscript.forumfree.net/. Phate72 \n\n",
            update:    "Новая версия ",
            optiontxt1: "Показывать имена игроков на карте острова: ",
            optiontxt2: "Показывать ссылки на месторождения над изображением острова: ",
            optiontxt: "Выбрать язык",
            // english
            msgAgora: "Send message to Agora",
        },
        
        pl:
        { // Na Polski przetłumaczył Qasq
            infotext: "Gracze korzystający z wyspowych dóbr powinni składać datki na ich rozbudowę "+
                "w zależności od ilości robotników oraz poziomu ratusza. Datki należy składać na każde z dóbr z osobna tj: " +
                "na każdy tartak i kopalnię/winnicę." +
                "<center>Wysokość wpłat jest wyznaczana na podstawie formuły:<br />"+
                "<b>Wys. Wpłaty = (Qw * pracownik) + (Qm * poziom ratusza)</b><br />"+
                "<b>Qw</b> = Współczynnik wydobycia na pracownika | <b>Qm</b> = Współczynnik wydobycia na poziom ratusza</center>"+
                "<center>Legend:</center>",
            info1ico: "Wyśmienicie!",
            info2ico: "Krwiopijca, brakuje 10% wpłaty.",
            info3ico: "Prawdziwa pijawa.",
            scorewrk: "Wydobycie na pracownika",
            scorelvl: "Wydobycie na poziom ratusza",
            chkboxvl: " Szacowana suma datków wszystkich graczy",
            stat1:    "Potrzeba do rozbudowy na kolejny poziom",
            stat2:    "brakuje",
            stat31:    "i suma wpłat jest adekwatna do ilości aktywnych graczy.",
            stat32:    "i suma wpłat pokrywa także braki związane z obecnością urlopowiczów.",
            stat33: "i jest koniecznym zwiększyć wpłaty.",
            stat33wrk: " na każdego pracownika. ",
            stat33lvl: " na każdy poziom ratuszal",
            statupgrd1: " Poziom",
            statupgrd2: "jest ruzbudowywany/a.",
              statinfo1: "Na wyspie są",
              statinfo2: "Miasta i średni poziom ratuszy to",
              statinfo3: "W sumie sponsorzy przeznaczyli ",
              statinfo4: " i są jeszcze",
              statinfo5: "pracownicy/ków. ",
              alertisland: "Lepiej odwiedź wyspę. \n Dzięki temu idlerzy oraz urlopowicze zostaną uwzględnieni na liście.",
              dateisland: " Zaktualizuj dane Wyspy: ",
              alertres1: "Lepiej odwiedź ",
              alertres2: "Tym sposobem zbierzesz podstawowe informacje na temat graczy i ich wpłat.",
              tradegood: " tartak",
              resource: " miejsce składowania/wydobycia surowca luksusowego",
              dateresource: " Aktualizacja ",
              errortxt: "Island_Control otrzymał kod błędu. Daj znać poprzez http://ikariamscript.forumfree.net/ w celu rozwiązania problemu. Phate72 \n\n",
              update: "nowa wersja ",
              optiontxt1: "Pokaż imiona graczy: ",
              optiontxt2: "Wyświetl przydatne linki/skróty do tartaku i kopalń obok nazwy Wyspy: ",
              optiontxt: "Wybierz język",
            // english
            msgAgora: "Send message to Agora",
        },
        nl:
        { // Dutch translation
            infotext: "Spelers die grondstoffen ontginnen van het eiland zullen hier bouwmateriaal moeten doneren, "+
                "afhankelijk van het aantal arbeiders en de stadsgrootte die ze hebben. " +
                "De bijdrage die hiervoor afgedragen dient te worden kan per zagerij en mijn ingesteld worden." +
                "<center>De bijdrage per speler hangt af van de volgende formule:<br />"+
                "<b>Donatie = (Qa * arbeider) + (Qs * stadhuis level)</b><br />"+
                "<b>Qa</b> is de bijdrage per arbeider en <b>Qs</b> de bijdrage per stadhuis level</center>"+
                "<center>Legenda:</center>",
            info1ico: "Uitstekend!",
            info2ico: "Profiteur, maar slechts 10% moet nog gedoneerd worden",
            info3ico: "Extreme profiteurs",
            scorewrk: "Bijdrage per arbeider",
            scorelvl: "Bijdrage per stadhuis level",
            chkboxvl: "Schat de donaties van alle spelers op het eiland",
            stat1:    "Voor level",
            stat2:    "is nog",
            stat31:    "nodig. De ontbrekende grondstoffen van de actieve spelers zijn daarvoor genoeg.",
            stat32:    "nodig.  Deze voorzien ook de ontbrekende grondstoffen van spelers in vakantie modus..",
            stat33: "nodig. Het is noodzakelijk om de bijdrages te verhogen.",
            stat33wrk: " voor iedere arbeider en ",
            stat33lvl: " per stadhuis level.",
            statupgrd1: " Level",
            statupgrd2: "is in aanbouw.",
            statinfo1: "Op het eiland zijn",
            statinfo2: "steden met een gemiddelde stadsgrootte van",
            statinfo3: "Alles bij elkaar hebben de spelers ",
            statinfo4: " gedoneerd en zijn er",
            statinfo5: "arbeiders. ",
            alertisland: "Je moet eerst het eiland getoond hebben. \n Op deze manier zijn de inactieve en vakantie modus spelers zichtbaar.",
            dateisland: " Eiland update: ",
            alertres1: "Je moet eerst de ",
            alertres2: "Op deze manier is het mogelijk om een schatting van de eilanddonaties te maken.",
            tradegood: " zagerij bezoeken",
            resource: " de luxe goederen bron bezoeken",
            dateresource: " Update ",
            errortxt: "Island_Control heeft een fout geconstateerd. Ga naar http://ikariamscript.forumfree.net/ om het probleem op te lossen. Phate72 \n\n",
            update: "nieuwe versie ",
            optiontxt1: "Geef spelersnamen weer op de eilandkaart: ",
            optiontxt2: "Geef snelkoppelingen weer naar de goederen bij de 'Toon eiland' knop: ",
            optiontxt: "Kies taal",
            msgAgora: "Stuur een bericht naar de Agora",
        },        
        en:
        { // English traslate by Paul93
            infotext: "The players who use the resource of the island should contribute to its development donating building material according to "+
                    "the number of workers and the size of the cities. The donation shares can be set " +
                    "for every saw mille and luxury resource deposit." +
                    "<center>The contribution that every player should donate is regulated by the following formula:<br />"+
                    "<b>Donation = (Qw * worker) + (Qt * level of the town hall)</b><br />"+
                    "<b>Qw</b> = Share by every worker | <b>Qm</b> = Share by every level of the town hall</center>"+
                    "<center>Legend:</center>",
            info1ico: "Very well!",
            info2ico: "Bloodsucker, but only the 10% remains to be donated.",
            info3ico: "True bloodsucker.",
            scorewrk: "Share by worker",
            scorelvl: "Share by level of the town hall",
            chkboxvl: " Estimate all player's donations in the island",
            stat1:    "In order to reach the next level",
            stat2:    "remain",
            stat31:    "and the donations lacking the active players are enough.",
            stat32:    "and they serve also the donations lacking the players in vacation mode.",
            stat33: "and it is necessary to increase the donation shares.",
            stat33wrk: " for every worker. ",
            stat33lvl: " for every level of the town hall",
            statupgrd1: " The level",
            statupgrd2: "is under construction.",
            statinfo1: "In the island there are",
            statinfo2: "cities and the average level of the town hall is",
            statinfo3: "On the whole the players have donated ",
            statinfo4: " and there are",
            statinfo5: "workers. ",
            alertisland: "You'd better visit the island. \n In this way inactive and vacation mode players will be visible.",
            dateisland: " Update Island: ",
            alertres1: "You'd better visit ",
            alertres2: "In this way it will be possible to make a general evaluation of the donations of the island.",
            tradegood: " the saw mill",
            resource: " the luxury resource deposit",
            dateresource: " Update ",
            errortxt: "Island_Control has generated an error. Please you get through to me in http://ikariamscript.forumfree.net/ to solve the problem. Phate72 \n\n",
            update: "new version ",
            optiontxt1: "Show the player's name in the island view: ",
            optiontxt2: "Show links towards the resources over the icon for the Isle: ",
            optiontxt: "Select language",
            msgAgora: "Send message to Agora",
        },
    }
    return langs[idlang]
}

submitter » gnopaster | imprint « imprint     
» Terms of use «