m_fileName=KInputDialog::getText(i18n("Enter Filename"),i18n("<qt>The file that you are sending to <i>%1</i> does not have a filename.<br>Please enter a filename to be presented to the receiver, or cancel the dcc transfer</qt>").tqarg(getPartnerNick()),"unknown",&pressedOk,NULL);
m_fileName=KInputDialog::getText(i18n("Enter Filename"),i18n("<qt>The file that you are sending to <i>%1</i> does not have a filename.<br>Please enter a filename to be presented to the receiver, or cancel the dcc transfer</qt>").arg(getPartnerNick()),"unknown",&pressedOk,NULL);
if(!pressedOk)
{
@ -217,7 +217,7 @@ void DccTransferSend::abort() // public slot
{
kdDebug()<<"DccTransferSend::abort()"<<endl;
settqStatus(Aborted);
setStatus(Aborted);
cleanUp();
emitdone(this);
}
@ -226,7 +226,7 @@ void DccTransferSend::start() // public slot
{
kdDebug()<<"DccTransferSend::start()"<<endl;
if(gettqStatus()!=Queued)
if(getStatus()!=Queued)
return;
// common procedure
@ -283,7 +283,7 @@ void DccTransferSend::start() // public slot
TQWhatsThis::add(m_nicknameLBox,i18n("This is your list of nicknames. A nickname is the name that other users will know you by. You may use any name you desire. The first character must be a letter.\n\nSince nicknames must be unique across an entire IRC network, your desired name may be rejected by the server because someone else is already using that nickname. Enter alternate nicknames for yourself. If your first choice is rejected by the server, Konversation will try the alternate nicknames."));
TQWhatsThis::add(botLabel,i18n("Service name can be <b><i>nickserv</i></b> or a network dependant name like <b><i>nickserv@services.dal.net</i></b>"));
TQWhatsThis::add(m_automaticAwayGBox,i18n("If you check this box, Konversation will automatically set all connections using this Identity away when the screensaver starts or after a period of user inactivity configured below."));
TQWhatsThis::add(m_awayMessageGBox,i18n("If you check this box, Konversation will automatically send the Away message to all channels joined with this Identity. <b>%s</b> is replaced with <b>msg</b>. Whenever you perform an <b>/away</b> command, the Return message will be displayed in all channels joined with this Identity."));
server->appendMessageToFrontmost(i18n("TOPIC"),i18n("The channel %1 has no topic set.").tqarg(parameterList[1])/*.tqarg(parameterList[2])*/);//FIXME ok, whats the second parameter supposed to be?
server->appendMessageToFrontmost(i18n("TOPIC"),i18n("The channel %1 has no topic set.").arg(parameterList[1])/*.arg(parameterList[2])*/);//FIXME ok, whats the second parameter supposed to be?
server->appendMessageToFrontmost(i18n("BanList:%1").tqarg(parameterList[1]),i18n("BanList message: e.g. *!*@aol.com set by MrGrim on <date>","%1 set by %2 on %3").tqarg(parameterList[2]).tqarg(parameterList[3].section('!',0,0)).tqarg(when.toString(Qt::LocalDate)));
server->appendMessageToFrontmost(i18n("BanList:%1").arg(parameterList[1]),i18n("BanList message: e.g. *!*@aol.com set by MrGrim on <date>","%1 set by %2 on %3").arg(parameterList[2]).arg(parameterList[3].section('!',0,0)).arg(when.toString(Qt::LocalDate)));
lagString=i18n("%1 = name of server, %2 = (x days), %3 = (x hours), %4 = (x minutes), %5 = (x seconds)","No answer from server %1 for more than %2, %3, %4, and %5.").tqarg(lagServer->getServerName())
lagString=i18n("%1 = name of server, %2 = (x days), %3 = (x hours), %4 = (x minutes), %5 = (x seconds)","No answer from server %1 for more than %2, %3, %4, and %5.").arg(lagServer->getServerName())
lagString=i18n("%1 = name of server, %2 = (x hours), %3 = (x minutes), %4 = (x seconds)","No answer from server %1 for more than %2, %3, and %4.").tqarg(lagServer->getServerName())
lagString=i18n("%1 = name of server, %2 = (x hours), %3 = (x minutes), %4 = (x seconds)","No answer from server %1 for more than %2, %3, and %4.").arg(lagServer->getServerName())
lagString=i18n("%1 = name of server, %2 = (x minutes), %3 = (x seconds)","No answer from server %1 for more than %2 and %3.").tqarg(lagServer->getServerName())
.tqarg(minutesString).tqarg(secondsString);
lagString=i18n("%1 = name of server, %2 = (x minutes), %3 = (x seconds)","No answer from server %1 for more than %2 and %3.").arg(lagServer->getServerName())
.arg(minutesString).arg(secondsString);
// or just some seconds
}
else
{
lagString=i18n("No answer from server %1 for more than 1 second.","No answer from server %1 for more than %n seconds.",seconds).tqarg(lagServer->getServerName());
lagString=i18n("No answer from server %1 for more than 1 second.","No answer from server %1 for more than %n seconds.",seconds).arg(lagServer->getServerName());
}
setMainLabelText(lagString);
@ -211,7 +211,7 @@ void KonversationStatusBar::setTooLongLag(Server* lagServer, int msec)
kdDebug()<<"Addressbook::canReceiveFiles() called with empty uid"<<endl;
returnfalse;
}
intpresence=presencetqStatus(uid);
intpresence=presenceStatus(uid);
return(presence==4)||(presence==3);
}
@ -137,7 +137,7 @@ namespace Konversation
returnfalse;
}
//this should return false if they are offline.
intresult=presencetqStatus(uid);
intresult=presenceStatus(uid);
if(result==3||result==4)returntrue;
returnfalse;
}
@ -161,7 +161,7 @@ namespace Konversation
if(!isPresent(uid))
returnTQPixmap();
switch(presencetqStatus(uid))
switch(presenceStatus(uid))
{
case0://Unknown
case1://Offline
@ -226,7 +226,7 @@ namespace Konversation
{
TQStringuser=addressee.fullEmail();
if(!user.isEmpty())user=" ("+user+')';
focusAndShowErrorMessage(i18n("Another KDE application tried to use Konversation for instant messaging, but the requested user%1 is not online.").tqarg(user));
focusAndShowErrorMessage(i18n("Another KDE application tried to use Konversation for instant messaging, but the requested user%1 is not online.").arg(user));
focusAndShowErrorMessage(i18n("Another KDE application tried to use Konversation to send a file to a contact, but the requested user%1 is not currently online.").tqarg(user));
focusAndShowErrorMessage(i18n("Another KDE application tried to use Konversation to send a file to a contact, but the requested user%1 is not currently online.").arg(user));
//We should now have lnick = ircnick, and versions with servername and servergroup -
// like johnflux, johnflux@freenode, or johnflux@irc.kde.org except with the tqunicode
// like johnflux, johnflux@freenode, or johnflux@irc.kde.org except with the unicode
// separator char 0xe120 instead of the @
kdDebug()<<"nick"<<ircnick<<endl;
@ -463,9 +463,9 @@ namespace Konversation
else
{
if(nicksWithoutAddressee.count()>1)
message=i18n("Some of the contacts (%1) that you have selected are not associated with addressbook contacts. ").tqarg(nicksWithoutAddressee.join(", "));
message=i18n("Some of the contacts (%1) that you have selected are not associated with addressbook contacts. ").arg(nicksWithoutAddressee.join(", "));
else
message=i18n("One of the contacts (%1) that you have selected is not associated with an addressbook contact. ").tqarg(nicksWithoutAddressee.join(", "));
message=i18n("One of the contacts (%1) that you have selected is not associated with an addressbook contact. ").arg(nicksWithoutAddressee.join(", "));
}
message+=i18n("You can right click on a contact, and choose to edit the Addressbook Associations to link them to a contact in your addressbook.");
}
@ -481,15 +481,15 @@ namespace Konversation
else
{
if(nicksWithoutEmails.count()>1)
message=i18n("Some of the contacts (%1) that you have selected do not have an email address associated with them. ").tqarg(nicksWithoutEmails.join(", "));
message=i18n("Some of the contacts (%1) that you have selected do not have an email address associated with them. ").arg(nicksWithoutEmails.join(", "));
else
message=i18n("One of the contacts (%1) that you have selected does not have an email address associated with them. ").tqarg(nicksWithoutEmails.join(", "));
message=i18n("One of the contacts (%1) that you have selected does not have an email address associated with them. ").arg(nicksWithoutEmails.join(", "));
}
message+=i18n("You can right click on a contact, and choose to edit the addressbook contact, adding an email for them.");
}
else
{
message=i18n("Some of the contacts (%1) that you have selected are not associated with addressbook contacts, and some of the contacts (%2) do not have an email address associated with them. ").tqarg(nicksWithoutAddressee.join(", ").tqarg(nicksWithoutEmails.join(", ")));
message=i18n("Some of the contacts (%1) that you have selected are not associated with addressbook contacts, and some of the contacts (%2) do not have an email address associated with them. ").arg(nicksWithoutAddressee.join(", ").arg(nicksWithoutEmails.join(", ")));
message+=i18n("You can right click on a contact, and choose to edit the Addressbook Associations to link them to a contact in your addressbook, and choose to edit the addressbook contact, adding an email for them.");
m_mainWidget->lblHeader->setText(i18n("Currently '%1' is associated with contact '%2'.").tqarg(m_ircnick).tqarg(realname));
m_mainWidget->lblHeader->setText(i18n("Currently '%1' is associated with contact '%2'.").arg(m_ircnick).arg(realname));
else
m_mainWidget->lblHeader->setText(i18n("<qt><b>Warning:</b> '%1' is currently being listed as belonging to multiple contacts. Please select the correct contact.</qt>").tqarg(m_ircnick));
m_mainWidget->lblHeader->setText(i18n("<qt><b>Warning:</b> '%1' is currently being listed as belonging to multiple contacts. Please select the correct contact.</qt>").arg(m_ircnick));
popup->tqsetWhatsThis(newitem,"<qt>Start a private chat between you and this person.<p/><em>Technical note:</em><br>The conversation between you and this person will be sent via the server. This means that the conversation will be affected by server lag, server stability, and will be terminated when you disconnect from the server.</qt>");
popup->setWhatsThis(newitem,"<qt>Start a private chat between you and this person.<p/><em>Technical note:</em><br>The conversation between you and this person will be sent via the server. This means that the conversation will be affected by server lag, server stability, and will be terminated when you disconnect from the server.</qt>");
popup->tqsetWhatsThis(newitem,"<qt>Start a private <em>D</em>irect <em>C</em>lient <em>C</em>onnection chat between you and this person.<p/><em>Technical note:</em><br />The conversation between you and this person will be sent directly. This means it is independent from the server - so if the server connection fails, or use disconnect, your DCC Chat will be unaffected. It also means that no irc server admin can view or spy on this chat.</qt>");
popup->setWhatsThis(newitem,"<qt>Start a private <em>D</em>irect <em>C</em>lient <em>C</em>onnection chat between you and this person.<p/><em>Technical note:</em><br />The conversation between you and this person will be sent directly. This means it is independent from the server - so if the server connection fails, or use disconnect, your DCC Chat will be unaffected. It also means that no irc server admin can view or spy on this chat.</qt>");
popup->tqsetWhatsThis(newitem,"<qt>Send a file to this person. If you are having problem sending files, or they are sending slowly, see the Konversation Handbook and DCC preferences page.</qt>");
popup->setWhatsThis(newitem,"<qt>Send a file to this person. If you are having problem sending files, or they are sending slowly, see the Konversation Handbook and DCC preferences page.</qt>");
returnusage(i18n("Usage: %1setkey [<nick|channel>] <key> sets the encryption key for nick or channel. %2setkey <key> when in a channel or query tab to set the key for it.").tqarg(commandChar).tqarg(commandChar));
returnusage(i18n("Usage: %1setkey [<nick|channel>] <key> sets the encryption key for nick or channel. %2setkey <key> when in a channel or query tab to set the key for it.").arg(commandChar).arg(commandChar));
result=KMessageBox::warningContinueCancel(this,i18n("Do you want to close your query with %1?").tqarg(getName()),i18n("Close Query"),i18n("Close"),"QuitQueryTab");
result=KMessageBox::warningContinueCancel(this,i18n("Do you want to close your query with %1?").arg(getName()),i18n("Close Query"),i18n("Close"),"QuitQueryTab");
TQStringinputText=i18n("No nicknames from the \"%1\" identity were accepted by the connection \"%2\".\nPlease enter a new one or press Cancel to disconnect:").tqarg(getIdentity()->getName()).tqarg(getDisplayName());
TQStringinputText=i18n("No nicknames from the \"%1\" identity were accepted by the connection \"%2\".\nPlease enter a new one or press Cancel to disconnect:").arg(getIdentity()->getName()).arg(getDisplayName());
result=KMessageBox::warningContinueCancel(this,i18n("Do you really want to close '%1'?\n\n All associated tabs will be closed as well.").tqarg(getName()),
result=KMessageBox::warningContinueCancel(this,i18n("Do you really want to close '%1'?\n\n All associated tabs will be closed as well.").arg(getName()),
i18n("Close Tab"),i18n("Close"),"QuitServerTab");
}
else
{
result=KMessageBox::warningContinueCancel(
this,
i18n("Do you want to disconnect from '%1'?\n\n All associated tabs will be closed as well.").tqarg(m_server->getServerName()),
i18n("Do you want to disconnect from '%1'?\n\n All associated tabs will be closed as well.").arg(m_server->getServerName()),