summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/inputDialog.cpp2
-rw-r--r--noncore/net/opieftp/opieftp.cpp90
-rw-r--r--noncore/net/opieftp/opieftp.pro2
3 files changed, 47 insertions, 47 deletions
diff --git a/noncore/net/opieftp/inputDialog.cpp b/noncore/net/opieftp/inputDialog.cpp
index 22205d3..89b345e 100644
--- a/noncore/net/opieftp/inputDialog.cpp
+++ b/noncore/net/opieftp/inputDialog.cpp
@@ -25,3 +25,3 @@ InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags
if ( !name )
- setName( "InputDialog" );
+ setName( "InputDialog" );
resize( 234, 50 );
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index 814d706..f70011b 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -122,6 +122,6 @@ OpieFtp::OpieFtp( )
// Local_View->setResizePolicy( QListView::AutoOneFit );
- Local_View->addColumn( "File",120);
- Local_View->addColumn( "Size",-1);
+ Local_View->addColumn( tr("File"),120);
+ Local_View->addColumn( tr("Size"),-1);
Local_View->setColumnAlignment(1,QListView::AlignRight);
- Local_View->addColumn( "Date",-1);
+ Local_View->addColumn( tr("Date"),-1);
Local_View->setColumnAlignment(2,QListView::AlignRight);
@@ -145,6 +145,6 @@ OpieFtp::OpieFtp( )
Remote_View = new QListView( tab_2, "Remote_View" );
- Remote_View->addColumn( "File",120);
- Remote_View->addColumn( "Size",-1);
+ Remote_View->addColumn( tr("File"),120);
+ Remote_View->addColumn( tr("Size"),-1);
Remote_View->setColumnAlignment(1,QListView::AlignRight);
- Remote_View->addColumn( "Date",-1);
+ Remote_View->addColumn( tr("Date"),-1);
Remote_View->setColumnAlignment(2,QListView::AlignRight);
@@ -304,5 +304,5 @@ void OpieFtp::localUpload()
QString msg;
- msg.sprintf("Unable to upload\n%s",FtpLastResponse(conn));
+ msg.sprintf(tr("Unable to upload\n")+"%s",FtpLastResponse(conn));
msg.replace(QRegExp(":"),"\n");
- QMessageBox::message("Note",msg);
+ QMessageBox::message(tr("Note"),msg);
// FtpQuit(conn);
@@ -312,3 +312,3 @@ void OpieFtp::localUpload()
} else {
- QMessageBox::message("Note","Cannot upload directories");
+ QMessageBox::message(tr("Note"),tr("Cannot upload directories"));
}
@@ -353,5 +353,5 @@ void OpieFtp::remoteDownload()
QString msg;
- msg.sprintf("Unable to download \n%s",FtpLastResponse(conn));
+ msg.sprintf(tr("Unable to download \n")+"%s",FtpLastResponse(conn));
msg.replace(QRegExp(":"),"\n");
- QMessageBox::message("Note",msg);
+ QMessageBox::message(tr("Note"),msg);
// FtpQuit(conn);
@@ -377,3 +377,3 @@ void OpieFtp::connector()
if(ServerComboBox->currentText().isEmpty()) {
- QMessageBox::warning(this,"Ftp","Please set the server info","Ok",0,0);
+ QMessageBox::warning(this,tr("Ftp"),tr("Please set the server info"),tr("Ok"),0,0);
TabWidget->setCurrentPage(2);
@@ -394,3 +394,3 @@ void OpieFtp::connector()
if (!FtpConnect( ftp_host.latin1(), &conn)) {
- QMessageBox::message("Note","Unable to connect to\n"+ftp_host);
+ QMessageBox::message(tr("Note"),tr("Unable to connect to\n")+ftp_host);
return ;
@@ -399,5 +399,5 @@ void OpieFtp::connector()
QString msg;
- msg.sprintf("Unable to log in\n%s",FtpLastResponse(conn));
+ msg.sprintf(tr("Unable to log in\n")+"%s",FtpLastResponse(conn));
msg.replace(QRegExp(":"),"\n");
- QMessageBox::message("Note",msg);
+ QMessageBox::message(tr("Note"),msg);
FtpQuit(conn);
@@ -429,5 +429,5 @@ bool OpieFtp::remoteDirList(const QString &dir)
QString msg;
- msg.sprintf("Unable to list the directory\n"+dir+"\n%s",FtpLastResponse(conn) );
+ msg.sprintf(tr("Unable to list the directory\n")+dir+"\n%s",FtpLastResponse(conn) );
msg.replace(QRegExp(":"),"\n");
- QMessageBox::message("Note",msg);
+ QMessageBox::message(tr("Note"),msg);
// FtpQuit(conn);
@@ -445,5 +445,5 @@ bool OpieFtp::remoteChDir(const QString &dir)
QString msg;
- msg.sprintf("Unable to change directories\n"+dir+"\n%s",FtpLastResponse(conn));
+ msg.sprintf(tr("Unable to change directories\n")+dir+"\n%s",FtpLastResponse(conn));
msg.replace(QRegExp(":"),"\n");
- QMessageBox::message("Note",msg);
+ QMessageBox::message(tr("Note"),msg);
qDebug(msg);
@@ -563,5 +563,5 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem)
QString msg;
- msg.sprintf("Unable to cd up\n%s",FtpLastResponse(conn));
+ msg.sprintf(tr("Unable to cd up\n")+"%s",FtpLastResponse(conn));
msg.replace(QRegExp(":"),"\n");
- QMessageBox::message("Note",msg);
+ QMessageBox::message(tr("Note"),msg);
qDebug(msg);
@@ -571,5 +571,5 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem)
QString msg;
- msg.sprintf("Unable to get working dir\n%s",FtpLastResponse(conn));
+ msg.sprintf(tr("Unable to get working dir\n")+"%s",FtpLastResponse(conn));
msg.replace(QRegExp(":"),"\n");
- QMessageBox::message("Note",msg);
+ QMessageBox::message(tr("Note"),msg);
qDebug(msg);
@@ -733,3 +733,3 @@ void OpieFtp::localMakDir()
InputDialog *fileDlg;
- fileDlg = new InputDialog(this,"Make Directory",TRUE, 0);
+ fileDlg = new InputDialog(this,tr("Make Directory"),TRUE, 0);
fileDlg->exec();
@@ -746,4 +746,4 @@ void OpieFtp::localDelete()
if(QDir(f).exists() ) {
- switch ( QMessageBox::warning(this,"Delete","Do you really want to delete\n"+f+
- " ?\nIt must be empty","Yes","No",0,0,1) ) {
+ switch ( QMessageBox::warning(this,tr("Delete"),tr("Do you really want to delete\n")+f+
+ tr(" ?\nIt must be empty"),tr("Yes"),tr("No"),0,0,1) ) {
case 0: {
@@ -761,4 +761,4 @@ void OpieFtp::localDelete()
} else {
- switch ( QMessageBox::warning(this,"Delete","Do you really want to delete\n"+f
- +" ?","Yes","No",0,0,1) ) {
+ switch ( QMessageBox::warning(this,tr("Delete"),tr("Do you really want to delete\n")+f
+ +" ?",tr("Yes"),tr("No"),0,0,1) ) {
case 0: {
@@ -780,3 +780,3 @@ void OpieFtp::remoteMakDir()
InputDialog *fileDlg;
- fileDlg = new InputDialog(this,"Make Directory",TRUE, 0);
+ fileDlg = new InputDialog(this,tr("Make Directory"),TRUE, 0);
fileDlg->exec();
@@ -788,5 +788,5 @@ void OpieFtp::remoteMakDir()
QString msg;
- msg.sprintf("Unable to make directory\n%s",FtpLastResponse(conn));
+ msg.sprintf(tr("Unable to make directory\n")+"%s",FtpLastResponse(conn));
msg.replace(QRegExp(":"),"\n");
- QMessageBox::message("Note",msg);
+ QMessageBox::message(tr("Note"),msg);
}
@@ -803,4 +803,4 @@ void OpieFtp::remoteDelete()
QString path= currentRemoteDir+f;
- switch ( QMessageBox::warning(this,"Delete","Do you really want to delete\n"+f+"?"
- ,"Yes","No",0,0,1) ) {
+ switch ( QMessageBox::warning(this,tr("Delete"),tr("Do you really want to delete\n")+f+"?"
+ ,tr("Yes"),tr("No"),0,0,1) ) {
case 0: {
@@ -809,5 +809,5 @@ void OpieFtp::remoteDelete()
QString msg;
- msg.sprintf("Unable to remove directory\n%s",FtpLastResponse(conn));
+ msg.sprintf(tr("Unable to remove directory\n")+"%s",FtpLastResponse(conn));
msg.replace(QRegExp(":"),"\n");
- QMessageBox::message("Note",msg);
+ QMessageBox::message(tr("Note"),msg);
}
@@ -819,4 +819,4 @@ void OpieFtp::remoteDelete()
} else {
- switch ( QMessageBox::warning(this,"Delete","Do you really want to delete\n"+f+"?"
- ,"Yes","No",0,0,1) ) {
+ switch ( QMessageBox::warning(this,tr("Delete"),tr("Do you really want to delete\n")+f+"?"
+ ,tr("Yes"),tr("No"),0,0,1) ) {
case 0: {
@@ -825,5 +825,5 @@ void OpieFtp::remoteDelete()
QString msg;
- msg.sprintf("Unable to delete file\n%s",FtpLastResponse(conn));
+ msg.sprintf(tr("Unable to delete file\n")+"%s",FtpLastResponse(conn));
msg.replace(QRegExp(":"),"\n");
- QMessageBox::message("Note",msg);
+ QMessageBox::message(tr("Note"),msg);
}
@@ -841,3 +841,3 @@ void OpieFtp::remoteRename()
InputDialog *fileDlg;
- fileDlg = new InputDialog(this,"Rename",TRUE, 0);
+ fileDlg = new InputDialog(this,tr("Rename"),TRUE, 0);
fileDlg->inputText = curFile;
@@ -850,5 +850,5 @@ void OpieFtp::remoteRename()
QString msg;
- msg.sprintf("Unable to rename file\n%s",FtpLastResponse(conn));
+ msg.sprintf(tr("Unable to rename file\n")+"%s",FtpLastResponse(conn));
msg.replace(QRegExp(":"),"\n");
- QMessageBox::message("Note",msg);
+ QMessageBox::message(tr("Note"),msg);
}
@@ -863,3 +863,3 @@ void OpieFtp::localRename()
InputDialog *fileDlg;
- fileDlg = new InputDialog(this,"Rename",TRUE, 0);
+ fileDlg = new InputDialog(this,tr("Rename"),TRUE, 0);
fileDlg->inputText = curFile;
@@ -870,3 +870,3 @@ void OpieFtp::localRename()
if( rename(oldname.latin1(), newName.latin1())== -1)
- QMessageBox::message("Note","Could not rename");
+ QMessageBox::message(tr("Note"),tr("Could not rename"));
}
@@ -884,3 +884,3 @@ void OpieFtp::currentPathEditChanged()
} else {
- QMessageBox::message("Note","That directory does not exist");
+ QMessageBox::message(tr("Note"),tr("That directory does not exist"));
}
diff --git a/noncore/net/opieftp/opieftp.pro b/noncore/net/opieftp/opieftp.pro
index f485cdf..147a8c5 100644
--- a/noncore/net/opieftp/opieftp.pro
+++ b/noncore/net/opieftp/opieftp.pro
@@ -11,2 +11,2 @@ LIBS += -lqpe
-TRANSLATIONS = ../../i18n/pt_BR/opieftp.ts
+TRANSLATIONS += ../../i18n/pt_BR/opieftp.ts