/*******************************************************************************
********************************************************************************
********************************************************************************
 KLASA Slownik(...)
********************************************************************************
********************************************************************************
*******************************************************************************/
function Slownik()
{
//ZMIENNE
  this.tlumacz = new Array(new Array(), new Array(), new Array(), new Array(), new Array(), new Array());
  
  
  //0 - pl
  this.tlumacz[0][0] = 'Trwa wysyłanie...';
  this.tlumacz[0][1] = 'Wysłano';
  this.tlumacz[0][2] = 'z';
  this.tlumacz[0][3] = 'wiadomosci';
  this.tlumacz[0][4] = 'Próba nawiązania połaczenia...';
  this.tlumacz[0][5] = 'Błąd! Nie można stworzyć obiektu XMLHttpRequest!';
  this.tlumacz[0][6] = 'Wysyłanie zakończone powodzeniem!';
  this.tlumacz[0][7] = 'Problem z nawiązaniem połączenia! Nie wysłano, żadnej wiadomości. Proszę spróbować później.';
  this.tlumacz[0][8] = 'Pojawił się błąd wysyłki! Wysłano tylko';
  this.tlumacz[0][9] = 'Proszę dosłać Mailing później';
  this.tlumacz[0][10] = 'Wysyłanie zakończone powodzeniem!';
  this.tlumacz[0][11] = '';
  this.tlumacz[0][12] = '';
  this.tlumacz[0][13] = '';
  this.tlumacz[0][14] = 'Zbyt długi adres e-mail!';
  this.tlumacz[0][15] = 'Popraw błędnie wprowadzony adres e-mail!';
  this.tlumacz[0][16] = 'Należy zaznaczyć przynajmniej jedną grupę tematyczną!';
  this.tlumacz[0][17] = 'Podaj adres serwera SMTP!';
  this.tlumacz[0][18] = 'Zbyt długi adres serwera SMTP (max. 64 znaki)!';
  this.tlumacz[0][19] = 'Podaj adres e-mail użytkownika SMTP!';  
  this.tlumacz[0][20] = 'Niepoprawny adres e-mail użytkownika SMTP!';
  this.tlumacz[0][21] = 'Podaj hasło dla poczty wychodzącej SMTP!';
  this.tlumacz[0][22] = 'Zbyt długie hasło serwera SMTP (max. 64 znaki)!';  
  this.tlumacz[0][23] = 'Podaj adres e-mail nadawcy!';
  this.tlumacz[0][24] = 'Niepoprawny adres e-mail nadawcy!';
  this.tlumacz[0][25] = 'Podaj nazwę nadawcy!';  
  this.tlumacz[0][26] = 'Zbyt długa nazwa Nadawcy (max. 64 znaki)!';
  this.tlumacz[0][27] = 'Podaj adres zwrotny!';
  this.tlumacz[0][28] = 'Niepoprawny adres zwrotny!';
  this.tlumacz[0][29] = 'Podaj adres strony konfiguracyjnej sybskrybenta!';
  this.tlumacz[0][30] = 'UWAGA! Tej operacji nie będzie można cofnąć!';
                  
  //1 - en i us
  this.tlumacz[1][0] = 'The message is being sent...';
  this.tlumacz[1][1] = 'Sent';
  this.tlumacz[1][2] = 'from';
  this.tlumacz[1][3] = 'messages';
  this.tlumacz[1][4] = 'Connecting...';
  this.tlumacz[1][5] = 'Error! The XMLHttpRequest object could not be created!';
  this.tlumacz[1][6] = 'Transfer has been successful!';
  this.tlumacz[1][7] = 'The connection has failed. No message has been sent. Please, try later.';
  this.tlumacz[1][8] = 'The delivery error occured. Sent';
  this.tlumacz[1][9] = 'Please, try to mail later';
  this.tlumacz[1][10] = 'Transferred has been successful';
  this.tlumacz[1][11] = '';
  this.tlumacz[1][12] = '';
  this.tlumacz[1][13] = '';
  this.tlumacz[1][14] = 'Your e-mail address is too long!';
  this.tlumacz[1][15] = 'Please, correct your e-mail address!';
  this.tlumacz[1][16] = 'You have to choose at least one thematic group of messages!';
  this.tlumacz[1][17] = 'Enter an address of a SMTP’s server!';
  this.tlumacz[1][18] = 'The address of SMTP is too long (max. 64 letters)!';
  this.tlumacz[1][19] = 'Enter an e-mail address of a SMTP’s user!';  
  this.tlumacz[1][20] = 'The e-mail address of a SMTP’s user is incorrect!';
  this.tlumacz[1][21] = 'Enter password for outgoing server SMTP!';
  this.tlumacz[1][22] = 'The password for  SMTP server is too long (64 letters)!';  
  this.tlumacz[1][23] = 'Enters sender’s address!';
  this.tlumacz[1][24] = 'Sender’s address is incorrect!';
  this.tlumacz[1][25] = 'Enter sender’s name!';  
  this.tlumacz[1][26] = 'Sender’s name is too long (max. 64 letters)!';
  this.tlumacz[1][27] = 'Enter a returning addresses!';
  this.tlumacz[1][28] = 'The returning address is incorrect!';
  this.tlumacz[1][29] = 'The web address for a configuration page of a user is missing!';
  this.tlumacz[1][30] = 'Warning! The operation cannot be undone!';   
     
  //2 - es
  this.tlumacz[2][0] = '1';
  this.tlumacz[2][1] = '2';
  this.tlumacz[2][2] = '3';
  this.tlumacz[2][3] = '4';
  this.tlumacz[2][4] = '5';
  this.tlumacz[2][5] = '6';
  this.tlumacz[2][6] = '7';
  this.tlumacz[2][7] = '8';
  this.tlumacz[2][8] = '9';
  this.tlumacz[2][9] = '10';
  this.tlumacz[2][10] = '11';
  this.tlumacz[2][11] = '12';
  this.tlumacz[2][12] = '13';
  this.tlumacz[2][13] = '14';
  this.tlumacz[2][14] = '¡La dirección e-mail demasiado larga!';
  this.tlumacz[2][15] = '¡Corrige la dirección e-mail equivocada!';
  this.tlumacz[2][16] = '¡Hay que marcar al menos un grupo temático!';
  this.tlumacz[2][17] = '18';
  this.tlumacz[2][18] = '19';
  this.tlumacz[2][19] = '20';
  this.tlumacz[2][20] = '21';
  this.tlumacz[2][21] = '22';    
  this.tlumacz[2][22] = '23';
  this.tlumacz[2][23] = '24';
  this.tlumacz[2][24] = '25';
  this.tlumacz[2][25] = '26';
  this.tlumacz[2][26] = '27';
  this.tlumacz[2][27] = '28';
  this.tlumacz[2][28] = '29';
  this.tlumacz[2][29] = '30';
  this.tlumacz[2][30] = '¡ATENCIÓN! ¡Esta operación no podrá ser cancelada!';   
     
  //3 - de
  this.tlumacz[3][0] = '1';
  this.tlumacz[3][1] = '2';
  this.tlumacz[3][2] = '3';
  this.tlumacz[3][3] = '4';
  this.tlumacz[3][4] = '5';
  this.tlumacz[3][5] = '6';
  this.tlumacz[3][6] = '7';
  this.tlumacz[3][7] = '8';
  this.tlumacz[3][8] = '9';
  this.tlumacz[3][9] = '10';
  this.tlumacz[3][10] = '11';
  this.tlumacz[3][11] = '12';
  this.tlumacz[3][12] = '13';
  this.tlumacz[3][13] = '14';
  this.tlumacz[3][14] = 'Zu lange E-Mail-Adresse!';
  this.tlumacz[3][15] = 'Berichtigen Sie die falsch eingegebene E-Mail-Adresse!';
  this.tlumacz[3][16] = 'Es sollte mindestens eine Themengruppe ausgewählt werden!';
  this.tlumacz[3][17] = '18';
  this.tlumacz[3][18] = '19';
  this.tlumacz[3][19] = '20';
  this.tlumacz[3][20] = '21';
  this.tlumacz[3][21] = '22';    
  this.tlumacz[3][22] = '23';
  this.tlumacz[3][23] = '24';
  this.tlumacz[3][24] = '25';
  this.tlumacz[3][25] = '26';
  this.tlumacz[3][26] = '27';
  this.tlumacz[3][27] = '28';
  this.tlumacz[3][28] = '29';
  this.tlumacz[3][29] = '30';
  this.tlumacz[3][30] = 'ACHTUNG! Dieser Schritt wird nicht mehr rückgängig gemacht werden können!';   
     
  //4 - fr
  this.tlumacz[4][0] = '1';
  this.tlumacz[4][1] = '2';
  this.tlumacz[4][2] = '3';
  this.tlumacz[4][3] = '4';
  this.tlumacz[4][4] = '5';
  this.tlumacz[4][5] = '6';
  this.tlumacz[4][6] = '7';
  this.tlumacz[4][7] = '8';
  this.tlumacz[4][8] = '9';
  this.tlumacz[4][9] = '10';
  this.tlumacz[4][10] = '11';
  this.tlumacz[4][11] = '12';
  this.tlumacz[4][12] = '13';
  this.tlumacz[4][13] = '14';
  this.tlumacz[4][14] = 'L\'adresse e-mail que vous avez saisie est trop longue !';
  this.tlumacz[4][15] = 'Veuillez corriger l\'adresse e-mail !';
  this.tlumacz[4][16] = 'Vous devez sélectionner au moins un groupe thématique !';
  this.tlumacz[4][17] = '18';
  this.tlumacz[4][18] = '19';
  this.tlumacz[4][19] = '20';
  this.tlumacz[4][20] = '21';
  this.tlumacz[4][21] = '22';    
  this.tlumacz[4][22] = '23';
  this.tlumacz[4][23] = '24';
  this.tlumacz[4][24] = '25';
  this.tlumacz[4][25] = '26';
  this.tlumacz[4][26] = '27';
  this.tlumacz[4][27] = '28';
  this.tlumacz[4][28] = '29';
  this.tlumacz[4][29] = '30';
  this.tlumacz[4][30] = 'ATTENTION ! Cette opération ne pourra plus être annulée !';   
     
  //5 - ru
  this.tlumacz[5][0] = '1';
  this.tlumacz[5][1] = '2';
  this.tlumacz[5][2] = '3';
  this.tlumacz[5][3] = '4';
  this.tlumacz[5][4] = '5';
  this.tlumacz[5][5] = '6';
  this.tlumacz[5][6] = '7';
  this.tlumacz[5][7] = '8';
  this.tlumacz[5][8] = '9';
  this.tlumacz[5][9] = '10';
  this.tlumacz[5][10] = '11';
  this.tlumacz[5][11] = '12';
  this.tlumacz[5][12] = '13';
  this.tlumacz[5][13] = '14';
  this.tlumacz[5][14] = 'Слишком длинный адрес e-mail!';
  this.tlumacz[5][15] = 'Исправь ошибочно введенный адрес e-mail!';
  this.tlumacz[5][16] = 'Следует выбрать, по крайней мере, одну тематическую группу!';
  this.tlumacz[5][17] = '18';
  this.tlumacz[5][18] = '19';
  this.tlumacz[5][19] = '20';
  this.tlumacz[5][20] = '21';
  this.tlumacz[5][21] = '22';    
  this.tlumacz[5][22] = '23';
  this.tlumacz[5][23] = '24';
  this.tlumacz[5][24] = '25';
  this.tlumacz[5][25] = '26';
  this.tlumacz[5][26] = '27';
  this.tlumacz[5][27] = '28';
  this.tlumacz[5][28] = '29';
  this.tlumacz[5][29] = '30';
  this.tlumacz[5][30] = 'ВНИМАНИЕ! Эту операцию уже нельзя будет отменить!';   
  
  
  //METODY  
  this.czytaj = czytajSlownik;  
}//function Slownik()


function czytajSlownik(jezyk, numer)
{
  switch(jezyk)
  {
    case 'pl':
      numerJezyka = 0;
    break;

    case 'en':
      numerJezyka = 1;
    break;
    
    case 'us':
      numerJezyka = 1;
    break;    

    case 'es':
      numerJezyka = 2;
    break;    

    case 'de':
      numerJezyka = 3;
    break;    

    case 'fr':
      numerJezyka = 4;
    break;    

    case 'ru':
      numerJezyka = 5;
    break;    
        
    default:
      numerJezyka = 0;    
    break;
  } 
   
  return this.tlumacz[numerJezyka][numer];
}
