summaryrefslogtreecommitdiff
authordwmw2 <dwmw2>2002-09-20 13:02:13 (UTC)
committer dwmw2 <dwmw2>2002-09-20 13:02:13 (UTC)
commitcc311b771843c289fadbe9a301e432963b906208 (patch) (side-by-side diff)
tree02665007b0be38bc29f840e497c5c14757c1f4b0
parent6cbf7b19d7bb3fcd2471dbaa531a7b2ae05f0fcc (diff)
downloadopie-cc311b771843c289fadbe9a301e432963b906208.zip
opie-cc311b771843c289fadbe9a301e432963b906208.tar.gz
opie-cc311b771843c289fadbe9a301e432963b906208.tar.bz2
tr()
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sshkeys/sshkeys.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/noncore/settings/sshkeys/sshkeys.cpp b/noncore/settings/sshkeys/sshkeys.cpp
index 5095d16..701356a 100644
--- a/noncore/settings/sshkeys/sshkeys.cpp
+++ b/noncore/settings/sshkeys/sshkeys.cpp
@@ -74,13 +74,13 @@ void SSHKeysApp::doRefreshListButton()
incoming_keyfingerprint="";
// log_text("Running ssh-add -l");
sshadd_process << "ssh-add" << "-l";
bool ret = sshadd_process.start(OProcess::Block, OProcess::AllOutput);
if (!ret) {
- log_text("Error running ssh-add");
+ log_text(tr("Error running ssh-add"));
return;
}
}
void SSHKeysApp::get_list_keys_output(OProcess *proc, char *buffer, int buflen)
@@ -164,13 +164,13 @@ void SSHKeysApp::ssh_add_exited(OProcess *proc)
(void)proc;
doRefreshListButton();
setEnabled(TRUE);
if (proc->exitStatus()) {
- log_text(QString("ssh-add failed"));
+ log_text(QString(tr("ssh-add failed")));
}
}
void SSHKeysApp::add_text_changed(const QString &text)
{
struct stat sbuf;
@@ -188,20 +188,20 @@ void SSHKeysApp::doAddButton()
addprocess.clearArguments();
setEnabled(FALSE);
if (KeyFileName->currentText().length()) {
addprocess << "ssh-add" << "--" << KeyFileName->currentText();
- log_text(QString("Running ssh-add -- ") + KeyFileName->currentText());
+ log_text(QString(tr("Running ssh-add -- ")) + KeyFileName->currentText());
} else {
addprocess << "ssh-add";
- log_text("Running ssh-add");
+ log_text(tr("Running ssh-add"));
}
bool ret = addprocess.start(OProcess::NotifyOnExit, OProcess::AllOutput);
if (!ret) {
- log_text("Error running ssh-add");
+ log_text(tr("Error running ssh-add"));
doRefreshListButton();
setEnabled(TRUE);
}
}
void SSHKeysApp::log_text(const char *text)
@@ -214,14 +214,14 @@ void SSHKeysApp::doRemoveAllButton()
{
OProcess sshadd_process;
connect(&sshadd_process, SIGNAL(receivedStdout(OProcess*,char*,int)),
this, SLOT(log_sshadd_output(OProcess*,char*,int)));
- log_text("Running ssh-add -D");
+ log_text(tr("Running ssh-add -D"));
sshadd_process << "ssh-add" << "-D";
bool ret = sshadd_process.start(OProcess::Block, OProcess::AllOutput);
if (!ret) {
- log_text("Error running ssh-add");
+ log_text(tr("Error running ssh-add"));
}
doRefreshListButton();
}