Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
If u can use it :) Correct Danish translation case "dk": //by polle1
|
|
|
i am sorry to be asking for this here but i dont now where to do it.... i am using "Travian Egyseg Figyelo v3.0" but it still has many bugs.... could you take a look at it and make it work OK for what i see it is not a large script and it should be easy to fix ;) but with a small change: changing the icons to the left off the village name.... and using 3 inactive icons that would become active ;) |
|
|
//main function
function onLoad()
{
loadLanguage();
//do stuff...
}
//load language
function loadLanguage()
{
var server = location.hostname;
var langExt = server.substring(server.lastIndexOf('.')+1);
switch(langExt) {
case 'uk': //Britain
langFile['ROMANS'] = 'Romans';
langFile['GAULS'] = 'Gauls';
langFile['TEUTONS'] = 'Teutons';
break;
case 'fr': //France
langFile['ROMANS'] = 'Romains';
langFile['GAULS'] = 'Gaulois';
langFile['TEUTONS'] = 'Germains';
break;
case 'fi': //Finland
langFile['ROMANS'] = 'Roomalaiset';
langFile['GAULS'] = 'Gallialaiset';
langFile['TEUTONS'] = 'Teutonit';
break;
//PASTE HERE THE SCRIPT RESULTS
}
}
|