// config->appendLogEntry( i18n( "OpenVPN import: pre shared key file %1 copied to %2." ).tqarg( PreSharedKeyFileSrc.name() ).tqarg( PreSharedKeyFileDst.name() ), config->debug );
// config->appendLogEntry( i18n( "OpenVPN import: pre shared key file %1 copied to %2." ).arg( PreSharedKeyFileSrc.name() ).arg( PreSharedKeyFileDst.name() ), config->debug );
// } else {
// } else {
// if ( config->KvpncDebugLevel > 2 )
// if ( config->KvpncDebugLevel > 2 )
// config->appendLogEntry( i18n( "OpenVPN import: pre shared key file %1 could not open for writing." ).tqarg( PreSharedKeyFileDst.name() ), config->debug );
// config->appendLogEntry( i18n( "OpenVPN import: pre shared key file %1 could not open for writing." ).arg( PreSharedKeyFileDst.name() ), config->debug );
//
//
// // return;
// // return;
// }
// }
// PreSharedKeyFileDst.close();
// PreSharedKeyFileDst.close();
// } else {
// } else {
// if ( config->KvpncDebugLevel > 2 )
// if ( config->KvpncDebugLevel > 2 )
// config->appendLogEntry( i18n( "OpenVPN import: pre shared key file %1 could not open for reading." ).tqarg( PreSharedKeyFileSrc.name() ), config->debug );
// config->appendLogEntry( i18n( "OpenVPN import: pre shared key file %1 could not open for reading." ).arg( PreSharedKeyFileSrc.name() ), config->debug );
GlobalConfig->appendLogEntry(i18n("PCF import: certificate should be stored into cisco cert store: %1").tqarg(TQString().setNum(int(useCertStore))),GlobalConfig->debug);
GlobalConfig->appendLogEntry(i18n("PCF import: certificate should be stored into cisco cert store: %1").arg(TQString().setNum(int(useCertStore))),GlobalConfig->debug);
GlobalConfig->appendLogEntry(i18n("Remote ID \"%1\" (type: address) could not resolved, ommiting right id.").tqarg(GlobalConfig->currentProfile->getSpecialRemoteID()),GlobalConfig->error);
GlobalConfig->appendLogEntry(i18n("Remote ID \"%1\" (type: address) could not resolved, ommiting right id.").arg(GlobalConfig->currentProfile->getSpecialRemoteID()),GlobalConfig->error);
}
}
else
else
{
{
if(GlobalConfig->KvpncDebugLevel>3)
if(GlobalConfig->KvpncDebugLevel>3)
GlobalConfig->appendLogEntry(i18n("Remote ID \"%1\" (type: address) resolved to: %2").tqarg(GlobalConfig->currentProfile->getSpecialRemoteID()).tqarg(resolvedIp),GlobalConfig->debug);
GlobalConfig->appendLogEntry(i18n("Remote ID \"%1\" (type: address) resolved to: %2").arg(GlobalConfig->currentProfile->getSpecialRemoteID()).arg(resolvedIp),GlobalConfig->debug);
GlobalConfig->appendLogEntry(i18n("Local ID \"%1\" (type: address) could not resolved, ommiting left id.").tqarg(GlobalConfig->currentProfile->getSpecialLocalID()),GlobalConfig->error);
GlobalConfig->appendLogEntry(i18n("Local ID \"%1\" (type: address) could not resolved, ommiting left id.").arg(GlobalConfig->currentProfile->getSpecialLocalID()),GlobalConfig->error);
}
}
else
else
{
{
if(GlobalConfig->KvpncDebugLevel>3)
if(GlobalConfig->KvpncDebugLevel>3)
GlobalConfig->appendLogEntry(i18n("Local ID \"%1\" (type: address) resolved to: %2").tqarg(GlobalConfig->currentProfile->getSpecialLocalID()).tqarg(resolvedIp),GlobalConfig->debug);
GlobalConfig->appendLogEntry(i18n("Local ID \"%1\" (type: address) resolved to: %2").arg(GlobalConfig->currentProfile->getSpecialLocalID()).arg(resolvedIp),GlobalConfig->debug);
stream<<" leftid="+resolvedIp<<"\n";
stream<<" leftid="+resolvedIp<<"\n";
}
}
}
}
@ -5359,7 +5359,7 @@ void KVpnc::connectClicked()
if(gresupportfound)
if(gresupportfound)
{
{
if(GlobalConfig->KvpncDebugLevel>0)
if(GlobalConfig->KvpncDebugLevel>0)
GlobalConfig->appendLogEntry(i18n("Support for %1 found (compiled into kernel or kernel module already loaded).").tqarg("GRE"),GlobalConfig->debug);
GlobalConfig->appendLogEntry(i18n("Support for %1 found (compiled into kernel or kernel module already loaded).").arg("GRE"),GlobalConfig->debug);
//KMessageBox::information( this, i18n( "Loading of module \"%1\" failed!" ).tqarg("\"ppp-compress-18\" (ppp_mppe)"));
//KMessageBox::information( this, i18n( "Loading of module \"%1\" failed!" ).arg("\"ppp-compress-18\" (ppp_mppe)"));
if(GlobalConfig->KvpncDebugLevel>0)
if(GlobalConfig->KvpncDebugLevel>0)
GlobalConfig->appendLogEntry(i18n("Loading module \"%1\" has been failed, trying \"%2\"...").arg("ppp-compress-18").arg("ppp_mppe"),GlobalConfig->debug);
GlobalConfig->appendLogEntry(i18n("Loading module \"%1\" has been failed, trying \"%2\"...").arg("ppp-compress-18").arg("ppp_mppe"),GlobalConfig->debug);
// KMessageBox::error( 0, i18n( "Certificate file (%1) could not be found. Please check the path of it." ).tqarg( GlobalConfig->currentProfile->getX509Certificate() ), i18n( "File Not Found" ) );
// KMessageBox::error( 0, i18n( "Certificate file (%1) could not be found. Please check the path of it." ).arg( GlobalConfig->currentProfile->getX509Certificate() ), i18n( "File Not Found" ) );
// GlobalConfig->appendLogEntry( i18n( "Certificate file (%1) could not be found. Please check the path of it." ).tqarg( GlobalConfig->currentProfile->getX509Certificate() ), GlobalConfig->error );
// GlobalConfig->appendLogEntry( i18n( "Certificate file (%1) could not be found. Please check the path of it." ).arg( GlobalConfig->currentProfile->getX509Certificate() ), GlobalConfig->error );
// GlobalConfig->appendLogEntry( i18n( "Vpnc pid file contains a pid: %1, try to terminate the process with this pid." ).tqarg( Vpnc_pid ) , GlobalConfig->debug);
// GlobalConfig->appendLogEntry( i18n( "Vpnc pid file contains a pid: %1, try to terminate the process with this pid." ).arg( Vpnc_pid ) , GlobalConfig->debug);
GlobalConfig->appendLogEntry(i18n("Vpnc pid file contains a pid: %1, try to terminate the process with this pid.").tqarg(Vpnc_pid),GlobalConfig->debug);
GlobalConfig->appendLogEntry(i18n("Vpnc pid file contains a pid: %1, try to terminate the process with this pid.").arg(Vpnc_pid),GlobalConfig->debug);
KMessageBox::error(this,i18n("Specified network device (%1) does not exist. Please specifiy an existing device or default at settings.").tqarg(interfacemissing));
KMessageBox::error(this,i18n("Specified network device (%1) does not exist. Please specifiy an existing device or default at settings.").arg(interfacemissing));
GlobalConfig->appendLogEntry(i18n("Specified network device (%1) does not exist. Please specifiy an existing device or default at settings.").tqarg(interfacemissing),GlobalConfig->error);
GlobalConfig->appendLogEntry(i18n("Specified network device (%1) does not exist. Please specifiy an existing device or default at settings.").arg(interfacemissing),GlobalConfig->error);
// GlobalConfig->appendLogEntry( i18n( "%1 could not be killed." ).tqarg("ipsec") ,GlobalConfig->error);
// GlobalConfig->appendLogEntry( i18n( "%1 could not be killed." ).arg("ipsec") ,GlobalConfig->error);
// GlobalConfig->appendLogEntry ( TQString( "[ipsec err] " + i18n( "Bind to given port has been failed. Another %1 process is running. Please stop %1 first." ).tqarg("ipsec") ) , GlobalConfig->debug );
// GlobalConfig->appendLogEntry ( TQString( "[ipsec err] " + i18n( "Bind to given port has been failed. Another %1 process is running. Please stop %1 first." ).arg("ipsec") ) , GlobalConfig->debug );
// GlobalConfig->appendLogEntry ( TQString( "[ipsec err] " + i18n( "Bind to given port has been failed. Another %1 process is running. Please stop %1 first." ).tqarg("ipsec") ) , GlobalConfig->debug );
// GlobalConfig->appendLogEntry ( TQString( "[ipsec err] " + i18n( "Bind to given port has been failed. Another %1 process is running. Please stop %1 first." ).arg("ipsec") ) , GlobalConfig->debug );
// abort=false;
// abort=false;
// }
// }
// else
// else
// {
// {
// if ( GlobalConfig->KvpncDebugLevel > 0 )
// if ( GlobalConfig->KvpncDebugLevel > 0 )
// GlobalConfig->appendLogEntry ( i18n( "%1 was already running. It was killed and restarted." ).tqarg( "ipsec" ), GlobalConfig->debug );
// GlobalConfig->appendLogEntry ( i18n( "%1 was already running. It was killed and restarted." ).arg( "ipsec" ), GlobalConfig->debug );
elseif(ProcessMsg.find("'dev-type' is used inconsistently, local='dev-type tun', remote='dev-type tap'",0,FALSE)>-1)
elseif(ProcessMsg.find("'dev-type' is used inconsistently, local='dev-type tun', remote='dev-type tap'",0,FALSE)>-1)
{
{
// KMessageBox::error( this, i18n( "Local network type is %1 but remote network type is %2. This must be fixed.\nGo to OpenVPN settings and change it to %2." ).tqarg( "tun" ).tqarg( "tap" ) );
// KMessageBox::error( this, i18n( "Local network type is %1 but remote network type is %2. This must be fixed.\nGo to OpenVPN settings and change it to %2." ).arg( "tun" ).arg( "tap" ) );
// GlobalConfig->appendLogEntry( i18n( "Local network type is %1 but remote network type is %2. This must be fixed." ).tqarg( "tun" ).tqarg( "tap" ) , GlobalConfig->error );
// GlobalConfig->appendLogEntry( i18n( "Local network type is %1 but remote network type is %2. This must be fixed." ).arg( "tun" ).arg( "tap" ) , GlobalConfig->error );
// abort = true;
// abort = true;
GlobalConfig->appendLogEntry(i18n("Local network type is %1 but remote network type is %2. This will be fixed.").arg("tun").arg("tap"),GlobalConfig->info);
GlobalConfig->appendLogEntry(i18n("Local network type is %1 but remote network type is %2. This will be fixed.").arg("tun").arg("tap"),GlobalConfig->info);
elseif(ProcessMsg.find("'dev-type' is used inconsistently, local='dev-type tap', remote='dev-type tun'",0,FALSE)>-1)
elseif(ProcessMsg.find("'dev-type' is used inconsistently, local='dev-type tap', remote='dev-type tun'",0,FALSE)>-1)
{
{
// KMessageBox::error( this, i18n( "Local network type is %1 but remote network type is %2. This must be fixed.\nGo to OpenVPN settings and change it to %2." ).tqarg( "tap" ).tqarg( "tun" ) );
// KMessageBox::error( this, i18n( "Local network type is %1 but remote network type is %2. This must be fixed.\nGo to OpenVPN settings and change it to %2." ).arg( "tap" ).arg( "tun" ) );
// GlobalConfig->appendLogEntry( i18n( "Local network type is %1 but remote network type is %2. This must be fixed." ).tqarg( "tap" ).tqarg( "tun" ), GlobalConfig->error );
// GlobalConfig->appendLogEntry( i18n( "Local network type is %1 but remote network type is %2. This must be fixed." ).arg( "tap" ).arg( "tun" ), GlobalConfig->error );
// abort = true;
// abort = true;
GlobalConfig->appendLogEntry(i18n("Local network type is %1 but remote network type is %2. This will be fixed.").arg("tap").arg("tun"),GlobalConfig->info);
GlobalConfig->appendLogEntry(i18n("Local network type is %1 but remote network type is %2. This will be fixed.").arg("tap").arg("tun"),GlobalConfig->info);
// KMessageBox::error( this, i18n( "Wrong authentication method used. We use \"%1\" but peer want \"%2\". Please change it in %3 settings." ).tqarg( LocalAuth ).tqarg( PeerAuth ).tqarg( i18n( "OpenVPN" ) ) );
// KMessageBox::error( this, i18n( "Wrong authentication method used. We use \"%1\" but peer want \"%2\". Please change it in %3 settings." ).arg( LocalAuth ).arg( PeerAuth ).arg( i18n( "OpenVPN" ) ) );
// GlobalConfig->appendLogEntry( i18n( "Wrong authentication method used. We use \"%1\" but peer want \"%2\". Please change it in %3 settings." ).tqarg( LocalAuth ).tqarg( PeerAuth ).tqarg( i18n( "OpenVPN" ) ) , GlobalConfig->error );
// GlobalConfig->appendLogEntry( i18n( "Wrong authentication method used. We use \"%1\" but peer want \"%2\". Please change it in %3 settings." ).arg( LocalAuth ).arg( PeerAuth ).arg( i18n( "OpenVPN" ) ) , GlobalConfig->error );
// abort = true;
// abort = true;
GlobalConfig->appendLogEntry(i18n("Wrong authentication method used. We use \"%1\" but peer want \"%2\", this will be fixed.").arg(LocalAuth).arg(PeerAuth),GlobalConfig->info);
GlobalConfig->appendLogEntry(i18n("Wrong authentication method used. We use \"%1\" but peer want \"%2\", this will be fixed.").arg(LocalAuth).arg(PeerAuth),GlobalConfig->info);
// KMessageBox::error( this, i18n( "Wrong cipher used. We use \"%1\" but peer want \"%2\". Please change it in %3 settings." ).tqarg( LocalCipher ).tqarg( PeerCipher ).tqarg( i18n( "OpenVPN" ) ) );
// KMessageBox::error( this, i18n( "Wrong cipher used. We use \"%1\" but peer want \"%2\". Please change it in %3 settings." ).arg( LocalCipher ).arg( PeerCipher ).arg( i18n( "OpenVPN" ) ) );
// GlobalConfig->appendLogEntry( i18n( "Wrong chiper used. We use \"%1\" but peer want \"%2\". Please change it in %3 settings." ).tqarg( LocalCipher ).tqarg( PeerCipher ).tqarg( i18n( "OpenVPN" ) ) , GlobalConfig->error );
// GlobalConfig->appendLogEntry( i18n( "Wrong chiper used. We use \"%1\" but peer want \"%2\". Please change it in %3 settings." ).arg( LocalCipher ).arg( PeerCipher ).arg( i18n( "OpenVPN" ) ) , GlobalConfig->error );
// abort = true;
// abort = true;
GlobalConfig->appendLogEntry(i18n("Wrong chipher used. We use \"%1\" but peer want \"%2\", this will be fixed.").arg(LocalCipher).arg(PeerCipher),GlobalConfig->info);
GlobalConfig->appendLogEntry(i18n("Wrong chipher used. We use \"%1\" but peer want \"%2\", this will be fixed.").arg(LocalCipher).arg(PeerCipher),GlobalConfig->info);
// GlobalConfig->appendLogEntry ( i18n("Ping to %1 within %2 checks every %3s was ok.").tqarg(GlobalConfig->currentProfile->getGateway()).tqarg(GlobalConfig->currentProfile->getConnectionStatusCheckSuccessCount()).tqarg(GlobalConfig->currentProfile->getConnectionStatusInterval()), GlobalConfig->debug );
// GlobalConfig->appendLogEntry ( i18n("Ping to %1 within %2 checks every %3s was ok.").arg(GlobalConfig->currentProfile->getGateway()).arg(GlobalConfig->currentProfile->getConnectionStatusCheckSuccessCount()).arg(GlobalConfig->currentProfile->getConnectionStatusInterval()), GlobalConfig->debug );
// GlobalConfig->appendLogEntry ( i18n("Ping to %1 within %2 checks every %3s was ok.").tqarg(GlobalConfig->currentProfile->getGateway()).tqarg(GlobalConfig->currentProfile->getConnectionStatusCheckSuccessCount()).tqarg( GlobalConfig->currentProfile->getConnectionStatusInterval() ), GlobalConfig->error );
// GlobalConfig->appendLogEntry ( i18n("Ping to %1 within %2 checks every %3s was ok.").arg(GlobalConfig->currentProfile->getGateway()).arg(GlobalConfig->currentProfile->getConnectionStatusCheckSuccessCount()).arg( GlobalConfig->currentProfile->getConnectionStatusInterval() ), GlobalConfig->error );
// KNotifyClient::event( topLevelWidget()->winId(), "connection lost",i18n("Ping to %1 within %2 checks every %3s was ok.").tqarg(GlobalConfig->currentProfile->getGateway()).tqarg(GlobalConfig->currentProfile->getConnectionStatusCheckSuccessCount()).tqarg(GlobalConfig->currentProfile->getConnectionStatusInterval()) );
// KNotifyClient::event( topLevelWidget()->winId(), "connection lost",i18n("Ping to %1 within %2 checks every %3s was ok.").arg(GlobalConfig->currentProfile->getGateway()).arg(GlobalConfig->currentProfile->getConnectionStatusCheckSuccessCount()).arg(GlobalConfig->currentProfile->getConnectionStatusInterval()) );
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).tqarg( account->getName() ), i18n( "Name exist, renamed" ) );
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).arg( account->getName() ), i18n( "Name exist, renamed" ) );
KMessageBox::error(this,i18n("Profile name exists!"),i18n("Name Exists"));
KMessageBox::error(this,i18n("Profile name exists!"),i18n("Name Exists"));
newName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(Oldname+"_2"),&ok);
newName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(Oldname+"_2"),&ok);
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).tqarg( account->getName() ), i18n( "Name exist, renamed" ) );
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).arg( account->getName() ), i18n( "Name exist, renamed" ) );
KMessageBox::error(this,i18n("Profile name exists!"),i18n("Name Exists"));
KMessageBox::error(this,i18n("Profile name exists!"),i18n("Name Exists"));
newName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(GlobalConfig->currentProfile->getName()+"_2"),&ok);
newName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(GlobalConfig->currentProfile->getName()+"_2"),&ok);
GlobalConfig->appendLogEntry(i18n("The required daemon (%1) and helper program (%2) is available, connect will be enabled.").arg(bin).arg("pkcs11-tool"),KVpncConfig::info);
GlobalConfig->appendLogEntry(i18n("The required daemon (%1) and helper program (%2) is available, connect will be enabled.").arg(bin).arg("pkcs11-tool"),KVpncConfig::info);
TypeRequirementStatus=i18n("Daemon (%1) and helper program (%2) not available").arg("pkcs11-tool").tqarg("pkcs11-tool");
TypeRequirementStatus=i18n("Daemon (%1) and helper program (%2) not available").arg("pkcs11-tool").arg("pkcs11-tool");
GlobalConfig->appendLogEntry(i18n("The required daemons (%1 and %2) and helper program (%3) is available, connect will be enabled.").arg("ipsec").arg(TQString(deamon)).arg("pkcs11-tool"),KVpncConfig::info);
GlobalConfig->appendLogEntry(i18n("The required daemons (%1 and %2) and helper program (%3) is available, connect will be enabled.").arg("ipsec").arg(TQString(deamon)).arg("pkcs11-tool"),KVpncConfig::info);
TypeRequirementStatus=i18n("Daemons (%1 and %2) available").arg("ipsec").tqarg(deamon).arg("pkcs11-tool");
TypeRequirementStatus=i18n("Daemons (%1 and %2) available").arg("ipsec").arg(deamon).arg("pkcs11-tool");
LogMsg=i18n("Successful connected to server: \"%1\", user: \"%2\" at %3").tqarg(GlobalConfig->currentProfile->getGateway()).tqarg(Username).tqarg(TQDateTime::currentDateTime().toString(Qt::TextDate)+" ["+PrettyTypeString+"]");
LogMsg=i18n("Successful connected to server: \"%1\", user: \"%2\" at %3").arg(GlobalConfig->currentProfile->getGateway()).arg(Username).arg(TQDateTime::currentDateTime().toString(Qt::TextDate)+" ["+PrettyTypeString+"]");
LogMsg=i18n("Successful connected to server \"%1\"\nuser: \"%2\" at %3").tqarg(GlobalConfig->currentProfile->getGateway()).tqarg(Username).tqarg(TQString(TQDateTime::currentDateTime().toString(Qt::TextDate))+TypeString2);
LogMsg=i18n("Successful connected to server \"%1\"\nuser: \"%2\" at %3").arg(GlobalConfig->currentProfile->getGateway()).arg(Username).arg(TQString(TQDateTime::currentDateTime().toString(Qt::TextDate))+TypeString2);
LogMsg=i18n("Policy successful activated and daemon (%1) running for server \"%2\" (%3) at date %4, profile \"%5\".").tqarg(DaemonString).tqarg(GlobalConfig->currentProfile->getGateway()).tqarg(GlobalConfig->TmpGatewayIP).tqarg(TQDateTime::currentDateTime().toString(Qt::TextDate)).tqarg(GlobalConfig->currentProfile->getName()+" ["+PrettyTypeString+"]");
LogMsg=i18n("Policy successful activated and daemon (%1) running for server \"%2\" (%3) at date %4, profile \"%5\".").arg(DaemonString).arg(GlobalConfig->currentProfile->getGateway()).arg(GlobalConfig->TmpGatewayIP).arg(TQDateTime::currentDateTime().toString(Qt::TextDate)).arg(GlobalConfig->currentProfile->getName()+" ["+PrettyTypeString+"]");
LogMsg=i18n("Successful connected to server \"%1\" at %2, profile \"%3\".").tqarg(GlobalConfig->currentProfile->getGateway()).tqarg(TQDateTime::currentDateTime().toString(Qt::TextDate)).tqarg(GlobalConfig->currentProfile->getName()+" ["+PrettyTypeString+"]");
LogMsg=i18n("Successful connected to server \"%1\" at %2, profile \"%3\".").arg(GlobalConfig->currentProfile->getGateway()).arg(TQDateTime::currentDateTime().toString(Qt::TextDate)).arg(GlobalConfig->currentProfile->getName()+" ["+PrettyTypeString+"]");
LogMsg=i18n("Successful connected to server \"%1\" at %2, profile \"%3\".").tqarg(TQString(GlobalConfig->currentProfile->getGateway())).tqarg(TQDateTime::currentDateTime().toString(Qt::TextDate)).tqarg(TQString(GlobalConfig->currentProfile->getName())+" ["+PrettyTypeString+"]");
LogMsg=i18n("Successful connected to server \"%1\" at %2, profile \"%3\".").arg(TQString(GlobalConfig->currentProfile->getGateway())).arg(TQDateTime::currentDateTime().toString(Qt::TextDate)).arg(TQString(GlobalConfig->currentProfile->getName())+" ["+PrettyTypeString+"]");
LogMsg=i18n("Successful connected to server \"%1\" at %2, profile \"%3\".").tqarg(GlobalConfig->currentProfile->getGateway()).tqarg(TQDateTime::currentDateTime().toString(Qt::TextDate)).tqarg(GlobalConfig->currentProfile->getName()+" ["+PrettyTypeString+"]");
LogMsg=i18n("Successful connected to server \"%1\" at %2, profile \"%3\".").arg(GlobalConfig->currentProfile->getGateway()).arg(TQDateTime::currentDateTime().toString(Qt::TextDate)).arg(GlobalConfig->currentProfile->getName()+" ["+PrettyTypeString+"]");
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).tqarg( account->getName() ), i18n( "Name exist, renamed" ) );
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).arg( account->getName() ), i18n( "Name exist, renamed" ) );
KMessageBox::error(0,i18n("Profile name exists!"),i18n("Name Exists"));
KMessageBox::error(0,i18n("Profile name exists!"),i18n("Name Exists"));
nameOk=false;
nameOk=false;
TQStringnewName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(account->getName()+"_2"),&ok);
TQStringnewName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(account->getName()+"_2"),&ok);
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).tqarg( account->getName() ), i18n( "Name exist, renamed" ) );
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).arg( account->getName() ), i18n( "Name exist, renamed" ) );
KMessageBox::error(this,i18n("Profile name exists!"),i18n("Name Exists"));
KMessageBox::error(this,i18n("Profile name exists!"),i18n("Name Exists"));
TQStringnewName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(account->getName()+"_2"),&ok);
TQStringnewName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(account->getName()+"_2"),&ok);
GlobalConfig->appendLogEntry(i18n("%1 virtual IP (%2) and special route...").tqarg(ActionPretty).tqarg(GlobalConfig->currentProfile->getLeftSourceIp()),GlobalConfig->debug);
GlobalConfig->appendLogEntry(i18n("%1 virtual IP (%2) and special route...").arg(ActionPretty).arg(GlobalConfig->currentProfile->getLeftSourceIp()),GlobalConfig->debug);
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).tqarg( account->getName() ), i18n( "Name exist, renamed" ) );
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).arg( account->getName() ), i18n( "Name exist, renamed" ) );
KMessageBox::error(this,i18n("Profile name exists!"),i18n("Name Exists"));
KMessageBox::error(this,i18n("Profile name exists!"),i18n("Name Exists"));
TQStringnewName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(account->getName()+="_2"),&ok);
TQStringnewName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(account->getName()+="_2"),&ok);
KMessageBox::error(0,i18n("The appdir for kvpnc could not be created. Be sure that you have write permission of \"%1\".").tqarg(dirs->saveLocation("data")));
KMessageBox::error(0,i18n("The appdir for kvpnc could not be created. Be sure that you have write permission of \"%1\".").arg(dirs->saveLocation("data")));
appendLogEntry(i18n("The appdir for kvpnc could not be created. Be sure that you have write permission of \"%1\".").tqarg(dirs->saveLocation("data")),error);
appendLogEntry(i18n("The appdir for kvpnc could not be created. Be sure that you have write permission of \"%1\".").arg(dirs->saveLocation("data")),error);
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).tqarg( account->getName() ), i18n( "Name exist, renamed" ) );
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).arg( account->getName() ), i18n( "Name exist, renamed" ) );
KMessageBox::error(0,i18n("Profile name exists!"),i18n("Name Exists"));
KMessageBox::error(0,i18n("Profile name exists!"),i18n("Name Exists"));
nameOk=false;
nameOk=false;
TQStringnewName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(data->getName()+"_2"),&ok);
TQStringnewName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(data->getName()+"_2"),&ok);
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).tqarg( account->getName() ), i18n( "Name exist, renamed" ) );
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).arg( account->getName() ), i18n( "Name exist, renamed" ) );
KMessageBox::error(0,i18n("Profile name exists!"),i18n("Name Exists"));
KMessageBox::error(0,i18n("Profile name exists!"),i18n("Name Exists"));
nameOk=false;
nameOk=false;
TQStringnewName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(profiledata->getName()+"_2"),&ok);
TQStringnewName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(profiledata->getName()+"_2"),&ok);
intresult=KMessageBox::questionYesNo(this,i18n("Do you really want to delete the cert \"%1\" (type: %2) from cert store?").tqarg(item->text(1).tqarg(item->text(2))),i18n("Delete certificate?"));
intresult=KMessageBox::questionYesNo(this,i18n("Do you really want to delete the cert \"%1\" (type: %2) from cert store?").arg(item->text(1).arg(item->text(2))),i18n("Delete certificate?"));
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).tqarg( account->getName() ), i18n( "Name exist, renamed" ) );
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).arg( account->getName() ), i18n( "Name exist, renamed" ) );
KMessageBox::error(this,i18n("Profile name exists!"),i18n("Name Exists"));
KMessageBox::error(this,i18n("Profile name exists!"),i18n("Name Exists"));
TQStringnewName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(Name+="_2"),&ok);
TQStringnewName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(Name+="_2"),&ok);
GlobalConfig->appendLogEntry(i18n("SSH: use autotected key: %1").tqarg(newprofilewizardsshpagecontent->SshKeyComboBox->currentText()),KVpncConfig::debug);
GlobalConfig->appendLogEntry(i18n("SSH: use autotected key: %1").arg(newprofilewizardsshpagecontent->SshKeyComboBox->currentText()),KVpncConfig::debug);
// if (IpsecToolInfo.Version.contains("Openswan") || IpsecToolInfo.Version.contains("Free"))
// if (IpsecToolInfo.Version.contains("Openswan") || IpsecToolInfo.Version.contains("Free"))
// KMessageBox::information(0,i18n("%1 (IPSec) currently has no working smartcard support (pkcs11). Please use strongSwan instead with enabled smartcard support.").tqarg(IpsecToolInfo.Version.section(' ',0,0)),i18n("Unsupported IPSec version"));
// KMessageBox::information(0,i18n("%1 (IPSec) currently has no working smartcard support (pkcs11). Please use strongSwan instead with enabled smartcard support.").arg(IpsecToolInfo.Version.section(' ',0,0)),i18n("Unsupported IPSec version"));
// if (IpsecToolInfo.Version.contains("Openswan") || IpsecToolInfo.Version.contains("Free"))
// if (IpsecToolInfo.Version.contains("Openswan") || IpsecToolInfo.Version.contains("Free"))
// KMessageBox::information(0,i18n("%1 (IPSec) currently has no working smartcard support (pkcs11). Please use strongSwan instead with enabled smartcard support.").tqarg(IpsecToolInfo.Version.section(' ',0,0)),i18n("Unsupported IPSec version"));
// KMessageBox::information(0,i18n("%1 (IPSec) currently has no working smartcard support (pkcs11). Please use strongSwan instead with enabled smartcard support.").arg(IpsecToolInfo.Version.section(' ',0,0)),i18n("Unsupported IPSec version"));
GlobalConfig->appendLogEntry("OpenvpnManagementHandler: "+i18n("Disconnected to the OpenVPN manage port (%1).").tqarg(TQString().setNum(GlobalConfig->OpenvpnManagementPort)),GlobalConfig->debug);
GlobalConfig->appendLogEntry("OpenvpnManagementHandler: "+i18n("Disconnected to the OpenVPN manage port (%1).").arg(TQString().setNum(GlobalConfig->OpenvpnManagementPort)),GlobalConfig->debug);
GlobalConfig->appendLogEntry("OpenvpnManagementHandler: "+i18n("Socket to the OpenVPN manage port (%1) closed.").tqarg(TQString().setNum(GlobalConfig->OpenvpnManagementPort)),GlobalConfig->debug);
GlobalConfig->appendLogEntry("OpenvpnManagementHandler: "+i18n("Socket to the OpenVPN manage port (%1) closed.").arg(TQString().setNum(GlobalConfig->OpenvpnManagementPort)),GlobalConfig->debug);
GlobalConfig->appendLogEntry("OpenvpnManagementHandler: "+i18n("Connected to the OpenVPN manage port (%1).").tqarg(TQString().setNum(GlobalConfig->OpenvpnManagementPort)),GlobalConfig->debug);
GlobalConfig->appendLogEntry("OpenvpnManagementHandler: "+i18n("Connected to the OpenVPN manage port (%1).").arg(TQString().setNum(GlobalConfig->OpenvpnManagementPort)),GlobalConfig->debug);
GlobalConfig->appendLogEntry("OpenvpnManagementHandler: "+i18n("Got no greeting within %1 seconds from management interface, retrying.").tqarg("3"),GlobalConfig->error);
GlobalConfig->appendLogEntry("OpenvpnManagementHandler: "+i18n("Got no greeting within %1 seconds from management interface, retrying.").arg("3"),GlobalConfig->error);
GlobalConfig->appendLogEntry(i18n("OpenvpnManagementHandler: CA certifcate file could not be loaded! Please check your CA certificate file."),GlobalConfig->error);
GlobalConfig->appendLogEntry(i18n("OpenvpnManagementHandler: CA certifcate file could not be loaded! Please check your CA certificate file."),GlobalConfig->error);
GlobalConfig->appendLogEntry(i18n("OpenvpnManagementHandler: Hash algorithm %1 could not found! Please check your OpenVPN settings.").tqarg(line.section('',3,3).remove('\'')),GlobalConfig->error);
GlobalConfig->appendLogEntry(i18n("OpenvpnManagementHandler: Hash algorithm %1 could not found! Please check your OpenVPN settings.").arg(line.section('',3,3).remove('\'')),GlobalConfig->error);
GlobalConfig->appendLogEntry(i18n("Hash algorithm not found (%1)!").tqarg(line.section('',3,3).remove('\'')),GlobalConfig->error);
GlobalConfig->appendLogEntry(i18n("Hash algorithm not found (%1)!").arg(line.section('',3,3).remove('\'')),GlobalConfig->error);
GlobalConfig->appendLogEntry("OpenvpnManagementHandler: "+i18n("Socket state is strange: %1").tqarg(TQString().setNum(socket->state())),GlobalConfig->debug);
GlobalConfig->appendLogEntry("OpenvpnManagementHandler: "+i18n("Socket state is strange: %1").arg(TQString().setNum(socket->state())),GlobalConfig->debug);
GlobalConfig->appendLogEntry("OpenvpnManagementHandler: "+i18n("Connecting to the OpenVPN manage port (%1)...").tqarg(TQString().setNum(GlobalConfig->OpenvpnManagementPort)),GlobalConfig->debug);
GlobalConfig->appendLogEntry("OpenvpnManagementHandler: "+i18n("Connecting to the OpenVPN manage port (%1)...").arg(TQString().setNum(GlobalConfig->OpenvpnManagementPort)),GlobalConfig->debug);
GlobalConfig->appendLogEntry("OpenvpnManagementHandler: "+i18n("Connecting to the OpenVPN manage port (%1)... host found").tqarg(TQString().setNum(GlobalConfig->OpenvpnManagementPort)),GlobalConfig->debug);
GlobalConfig->appendLogEntry("OpenvpnManagementHandler: "+i18n("Connecting to the OpenVPN manage port (%1)... host found").arg(TQString().setNum(GlobalConfig->OpenvpnManagementPort)),GlobalConfig->debug);
GlobalConfig->appendLogEntry(i18n("%1 is too old. Minimum requirement is %2, disabling Xauth interactive option.").tqarg("vpnc").tqarg("0.3.x"),GlobalConfig->error);
GlobalConfig->appendLogEntry(i18n("%1 is too old. Minimum requirement is %2, disabling Xauth interactive option.").arg("vpnc").arg("0.3.x"),GlobalConfig->error);
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).tqarg( account->getName() ), i18n( "Name exist, renamed" ) );
// KMessageBox::information ( this, i18n( "Profile name exists!\n It will be renamed to \"%1\"." ).arg( account->getName() ), i18n( "Name exist, renamed" ) );
KMessageBox::error(this,i18n("Profile name exists!"),i18n("Name Exists"));
KMessageBox::error(this,i18n("Profile name exists!"),i18n("Name Exists"));
newName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(Oldname+"_2"),&ok);
newName=KInputDialog::getText(i18n("New Name"),i18n("New name for profile:"),TQString(Oldname+"_2"),&ok);
KMessageBox::information(this,i18n("Profile \"%1\" added.\nNow set the right type,\n fill in the fields\nand press \"Save\" to complete the profile.").tqarg(newName),i18n("Complete Profile"));
KMessageBox::information(this,i18n("Profile \"%1\" added.\nNow set the right type,\n fill in the fields\nand press \"Save\" to complete the profile.").arg(newName),i18n("Complete Profile"));
KMessageBox::information(0,i18n("Rename of \"%1\" to \"%2\" was successful.").arg(oldName).tqarg(GlobalConfig->currentProfile->getName()));
KMessageBox::information(0,i18n("Rename of \"%1\" to \"%2\" was successful.").arg(oldName).arg(GlobalConfig->currentProfile->getName()));
GlobalConfig->appendLogEntry(i18n("Rename of \"%1\" to \"%2\" was successful.").arg(oldName).tqarg(GlobalConfig->currentProfile->getName()),GlobalConfig->info);
GlobalConfig->appendLogEntry(i18n("Rename of \"%1\" to \"%2\" was successful.").arg(oldName).arg(GlobalConfig->currentProfile->getName()),GlobalConfig->info);