-rw-r--r-- | noncore/net/opieftp/inputDialog.cpp | 2 | ||||
-rw-r--r-- | noncore/net/opieftp/opieftp.cpp | 90 | ||||
-rw-r--r-- | noncore/net/opieftp/opieftp.pro | 2 |
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 | |||
@@ -22,9 +22,9 @@ | |||
22 | InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) | 22 | InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) |
23 | : QDialog( parent, name, modal, fl ) | 23 | : QDialog( parent, name, modal, fl ) |
24 | { | 24 | { |
25 | if ( !name ) | 25 | if ( !name ) |
26 | setName( "InputDialog" ); | 26 | setName( "InputDialog" ); |
27 | resize( 234, 50 ); | 27 | resize( 234, 50 ); |
28 | setMaximumSize( QSize( 240, 50 ) ); | 28 | setMaximumSize( QSize( 240, 50 ) ); |
29 | setCaption( tr(name ) ); | 29 | setCaption( tr(name ) ); |
30 | 30 | ||
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 | |||
@@ -119,12 +119,12 @@ OpieFtp::OpieFtp( ) | |||
119 | tabLayout->setMargin( 2); | 119 | tabLayout->setMargin( 2); |
120 | 120 | ||
121 | Local_View = new QListView( tab, "Local_View" ); | 121 | Local_View = new QListView( tab, "Local_View" ); |
122 | // Local_View->setResizePolicy( QListView::AutoOneFit ); | 122 | // Local_View->setResizePolicy( QListView::AutoOneFit ); |
123 | Local_View->addColumn( "File",120); | 123 | Local_View->addColumn( tr("File"),120); |
124 | Local_View->addColumn( "Size",-1); | 124 | Local_View->addColumn( tr("Size"),-1); |
125 | Local_View->setColumnAlignment(1,QListView::AlignRight); | 125 | Local_View->setColumnAlignment(1,QListView::AlignRight); |
126 | Local_View->addColumn( "Date",-1); | 126 | Local_View->addColumn( tr("Date"),-1); |
127 | Local_View->setColumnAlignment(2,QListView::AlignRight); | 127 | Local_View->setColumnAlignment(2,QListView::AlignRight); |
128 | Local_View->setAllColumnsShowFocus(TRUE); | 128 | Local_View->setAllColumnsShowFocus(TRUE); |
129 | QPEApplication::setStylusOperation( Local_View->viewport(),QPEApplication::RightOnHold); | 129 | QPEApplication::setStylusOperation( Local_View->viewport(),QPEApplication::RightOnHold); |
130 | 130 | ||
@@ -142,12 +142,12 @@ OpieFtp::OpieFtp( ) | |||
142 | tabLayout_2->setSpacing( 2); | 142 | tabLayout_2->setSpacing( 2); |
143 | tabLayout_2->setMargin( 2); | 143 | tabLayout_2->setMargin( 2); |
144 | 144 | ||
145 | Remote_View = new QListView( tab_2, "Remote_View" ); | 145 | Remote_View = new QListView( tab_2, "Remote_View" ); |
146 | Remote_View->addColumn( "File",120); | 146 | Remote_View->addColumn( tr("File"),120); |
147 | Remote_View->addColumn( "Size",-1); | 147 | Remote_View->addColumn( tr("Size"),-1); |
148 | Remote_View->setColumnAlignment(1,QListView::AlignRight); | 148 | Remote_View->setColumnAlignment(1,QListView::AlignRight); |
149 | Remote_View->addColumn( "Date",-1); | 149 | Remote_View->addColumn( tr("Date"),-1); |
150 | Remote_View->setColumnAlignment(2,QListView::AlignRight); | 150 | Remote_View->setColumnAlignment(2,QListView::AlignRight); |
151 | Remote_View->setAllColumnsShowFocus(TRUE); | 151 | Remote_View->setAllColumnsShowFocus(TRUE); |
152 | QPEApplication::setStylusOperation( Remote_View->viewport(),QPEApplication::RightOnHold); | 152 | QPEApplication::setStylusOperation( Remote_View->viewport(),QPEApplication::RightOnHold); |
153 | 153 | ||
@@ -301,17 +301,17 @@ void OpieFtp::localUpload() | |||
301 | qDebug("Put: %s, %s",localFile.latin1(),remoteFile.latin1()); | 301 | qDebug("Put: %s, %s",localFile.latin1(),remoteFile.latin1()); |
302 | 302 | ||
303 | if( !FtpPut( localFile.latin1(), remoteFile.latin1(),FTPLIB_IMAGE, conn ) ) { | 303 | if( !FtpPut( localFile.latin1(), remoteFile.latin1(),FTPLIB_IMAGE, conn ) ) { |
304 | QString msg; | 304 | QString msg; |
305 | msg.sprintf("Unable to upload\n%s",FtpLastResponse(conn)); | 305 | msg.sprintf(tr("Unable to upload\n")+"%s",FtpLastResponse(conn)); |
306 | msg.replace(QRegExp(":"),"\n"); | 306 | msg.replace(QRegExp(":"),"\n"); |
307 | QMessageBox::message("Note",msg); | 307 | QMessageBox::message(tr("Note"),msg); |
308 | // FtpQuit(conn); | 308 | // FtpQuit(conn); |
309 | } | 309 | } |
310 | ProgressBar->reset(); | 310 | ProgressBar->reset(); |
311 | nullifyCallBack(); | 311 | nullifyCallBack(); |
312 | } else { | 312 | } else { |
313 | QMessageBox::message("Note","Cannot upload directories"); | 313 | QMessageBox::message(tr("Note"),tr("Cannot upload directories")); |
314 | } | 314 | } |
315 | TabWidget->setCurrentPage(1); | 315 | TabWidget->setCurrentPage(1); |
316 | remoteDirList( (const QString &)currentRemoteDir); //this also calls populate | 316 | remoteDirList( (const QString &)currentRemoteDir); //this also calls populate |
317 | QCopEnvelope ( "QPE/System", "notBusy()" ); | 317 | QCopEnvelope ( "QPE/System", "notBusy()" ); |
@@ -350,11 +350,11 @@ void OpieFtp::remoteDownload() | |||
350 | qDebug("Get: %s, %s",localFile.latin1(),remoteFile.latin1()); | 350 | qDebug("Get: %s, %s",localFile.latin1(),remoteFile.latin1()); |
351 | 351 | ||
352 | if(!FtpGet( localFile.latin1(), remoteFile.latin1(),FTPLIB_IMAGE, conn ) ) { | 352 | if(!FtpGet( localFile.latin1(), remoteFile.latin1(),FTPLIB_IMAGE, conn ) ) { |
353 | QString msg; | 353 | QString msg; |
354 | msg.sprintf("Unable to download \n%s",FtpLastResponse(conn)); | 354 | msg.sprintf(tr("Unable to download \n")+"%s",FtpLastResponse(conn)); |
355 | msg.replace(QRegExp(":"),"\n"); | 355 | msg.replace(QRegExp(":"),"\n"); |
356 | QMessageBox::message("Note",msg); | 356 | QMessageBox::message(tr("Note"),msg); |
357 | // FtpQuit(conn); | 357 | // FtpQuit(conn); |
358 | } | 358 | } |
359 | ProgressBar->reset(); | 359 | ProgressBar->reset(); |
360 | nullifyCallBack(); | 360 | nullifyCallBack(); |
@@ -374,9 +374,9 @@ void OpieFtp::connector() | |||
374 | QCopEnvelope ( "QPE/System", "busy()" ); | 374 | QCopEnvelope ( "QPE/System", "busy()" ); |
375 | qApp->processEvents(); | 375 | qApp->processEvents(); |
376 | currentRemoteDir=remotePath->text(); | 376 | currentRemoteDir=remotePath->text(); |
377 | if(ServerComboBox->currentText().isEmpty()) { | 377 | if(ServerComboBox->currentText().isEmpty()) { |
378 | QMessageBox::warning(this,"Ftp","Please set the server info","Ok",0,0); | 378 | QMessageBox::warning(this,tr("Ftp"),tr("Please set the server info"),tr("Ok"),0,0); |
379 | TabWidget->setCurrentPage(2); | 379 | TabWidget->setCurrentPage(2); |
380 | ServerComboBox->setFocus(); | 380 | ServerComboBox->setFocus(); |
381 | return; | 381 | return; |
382 | } | 382 | } |
@@ -391,16 +391,16 @@ void OpieFtp::connector() | |||
391 | if(ftp_host.find("ftp://",0, TRUE) != -1 ) | 391 | if(ftp_host.find("ftp://",0, TRUE) != -1 ) |
392 | ftp_host=ftp_host.right(ftp_host.length()-6); | 392 | ftp_host=ftp_host.right(ftp_host.length()-6); |
393 | ftp_host+=":"+port; | 393 | ftp_host+=":"+port; |
394 | if (!FtpConnect( ftp_host.latin1(), &conn)) { | 394 | if (!FtpConnect( ftp_host.latin1(), &conn)) { |
395 | QMessageBox::message("Note","Unable to connect to\n"+ftp_host); | 395 | QMessageBox::message(tr("Note"),tr("Unable to connect to\n")+ftp_host); |
396 | return ; | 396 | return ; |
397 | } | 397 | } |
398 | if (!FtpLogin( ftp_user.latin1(), ftp_pass.latin1(),conn )) { | 398 | if (!FtpLogin( ftp_user.latin1(), ftp_pass.latin1(),conn )) { |
399 | QString msg; | 399 | QString msg; |
400 | msg.sprintf("Unable to log in\n%s",FtpLastResponse(conn)); | 400 | msg.sprintf(tr("Unable to log in\n")+"%s",FtpLastResponse(conn)); |
401 | msg.replace(QRegExp(":"),"\n"); | 401 | msg.replace(QRegExp(":"),"\n"); |
402 | QMessageBox::message("Note",msg); | 402 | QMessageBox::message(tr("Note"),msg); |
403 | FtpQuit(conn); | 403 | FtpQuit(conn); |
404 | return ; | 404 | return ; |
405 | } | 405 | } |
406 | remoteDirList("/") ; | 406 | remoteDirList("/") ; |
@@ -426,11 +426,11 @@ bool OpieFtp::remoteDirList(const QString &dir) | |||
426 | // qDebug("Listing remote dir "+tmp); | 426 | // qDebug("Listing remote dir "+tmp); |
427 | QCopEnvelope ( "QPE/System", "busy()" ); | 427 | QCopEnvelope ( "QPE/System", "busy()" ); |
428 | if (!FtpDir( tmp.latin1(), dir.latin1(), conn) ) { | 428 | if (!FtpDir( tmp.latin1(), dir.latin1(), conn) ) { |
429 | QString msg; | 429 | QString msg; |
430 | msg.sprintf("Unable to list the directory\n"+dir+"\n%s",FtpLastResponse(conn) ); | 430 | msg.sprintf(tr("Unable to list the directory\n")+dir+"\n%s",FtpLastResponse(conn) ); |
431 | msg.replace(QRegExp(":"),"\n"); | 431 | msg.replace(QRegExp(":"),"\n"); |
432 | QMessageBox::message("Note",msg); | 432 | QMessageBox::message(tr("Note"),msg); |
433 | // FtpQuit(conn); | 433 | // FtpQuit(conn); |
434 | return false; | 434 | return false; |
435 | } | 435 | } |
436 | populateRemoteView() ; | 436 | populateRemoteView() ; |
@@ -442,11 +442,11 @@ bool OpieFtp::remoteChDir(const QString &dir) | |||
442 | { | 442 | { |
443 | QCopEnvelope ( "QPE/System", "busy()" ); | 443 | QCopEnvelope ( "QPE/System", "busy()" ); |
444 | if (!FtpChdir( dir.latin1(), conn )) { | 444 | if (!FtpChdir( dir.latin1(), conn )) { |
445 | QString msg; | 445 | QString msg; |
446 | msg.sprintf("Unable to change directories\n"+dir+"\n%s",FtpLastResponse(conn)); | 446 | msg.sprintf(tr("Unable to change directories\n")+dir+"\n%s",FtpLastResponse(conn)); |
447 | msg.replace(QRegExp(":"),"\n"); | 447 | msg.replace(QRegExp(":"),"\n"); |
448 | QMessageBox::message("Note",msg); | 448 | QMessageBox::message(tr("Note"),msg); |
449 | qDebug(msg); | 449 | qDebug(msg); |
450 | // FtpQuit(conn); | 450 | // FtpQuit(conn); |
451 | QCopEnvelope ( "QPE/System", "notBusy()" ); | 451 | QCopEnvelope ( "QPE/System", "notBusy()" ); |
452 | return FALSE; | 452 | return FALSE; |
@@ -560,19 +560,19 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem) | |||
560 | strItem=strItem.simplifyWhiteSpace(); | 560 | strItem=strItem.simplifyWhiteSpace(); |
561 | if(strItem == "../") { // the user wants to go ^ | 561 | if(strItem == "../") { // the user wants to go ^ |
562 | if( FtpCDUp( conn) == 0) { | 562 | if( FtpCDUp( conn) == 0) { |
563 | QString msg; | 563 | QString msg; |
564 | msg.sprintf("Unable to cd up\n%s",FtpLastResponse(conn)); | 564 | msg.sprintf(tr("Unable to cd up\n")+"%s",FtpLastResponse(conn)); |
565 | msg.replace(QRegExp(":"),"\n"); | 565 | msg.replace(QRegExp(":"),"\n"); |
566 | QMessageBox::message("Note",msg); | 566 | QMessageBox::message(tr("Note"),msg); |
567 | qDebug(msg); | 567 | qDebug(msg); |
568 | } | 568 | } |
569 | char path[256]; | 569 | char path[256]; |
570 | if( FtpPwd( path,sizeof(path),conn) == 0) { //this is easier than fudging the string | 570 | if( FtpPwd( path,sizeof(path),conn) == 0) { //this is easier than fudging the string |
571 | QString msg; | 571 | QString msg; |
572 | msg.sprintf("Unable to get working dir\n%s",FtpLastResponse(conn)); | 572 | msg.sprintf(tr("Unable to get working dir\n")+"%s",FtpLastResponse(conn)); |
573 | msg.replace(QRegExp(":"),"\n"); | 573 | msg.replace(QRegExp(":"),"\n"); |
574 | QMessageBox::message("Note",msg); | 574 | QMessageBox::message(tr("Note"),msg); |
575 | qDebug(msg); | 575 | qDebug(msg); |
576 | } | 576 | } |
577 | currentRemoteDir=path; | 577 | currentRemoteDir=path; |
578 | } else { | 578 | } else { |
@@ -730,9 +730,9 @@ void OpieFtp::showLocalMenu(QListViewItem * item) | |||
730 | 730 | ||
731 | void OpieFtp::localMakDir() | 731 | void OpieFtp::localMakDir() |
732 | { | 732 | { |
733 | InputDialog *fileDlg; | 733 | InputDialog *fileDlg; |
734 | fileDlg = new InputDialog(this,"Make Directory",TRUE, 0); | 734 | fileDlg = new InputDialog(this,tr("Make Directory"),TRUE, 0); |
735 | fileDlg->exec(); | 735 | fileDlg->exec(); |
736 | if( fileDlg->result() == 1 ) { | 736 | if( fileDlg->result() == 1 ) { |
737 | QString filename = fileDlg->LineEdit1->text(); | 737 | QString filename = fileDlg->LineEdit1->text(); |
738 | currentDir.mkdir( currentDir.canonicalPath()+"/"+filename); | 738 | currentDir.mkdir( currentDir.canonicalPath()+"/"+filename); |
@@ -743,10 +743,10 @@ void OpieFtp::localMakDir() | |||
743 | void OpieFtp::localDelete() | 743 | void OpieFtp::localDelete() |
744 | { | 744 | { |
745 | QString f = Local_View->currentItem()->text(0); | 745 | QString f = Local_View->currentItem()->text(0); |
746 | if(QDir(f).exists() ) { | 746 | if(QDir(f).exists() ) { |
747 | switch ( QMessageBox::warning(this,"Delete","Do you really want to delete\n"+f+ | 747 | switch ( QMessageBox::warning(this,tr("Delete"),tr("Do you really want to delete\n")+f+ |
748 | " ?\nIt must be empty","Yes","No",0,0,1) ) { | 748 | tr(" ?\nIt must be empty"),tr("Yes"),tr("No"),0,0,1) ) { |
749 | case 0: { | 749 | case 0: { |
750 | f=currentDir.canonicalPath()+"/"+f; | 750 | f=currentDir.canonicalPath()+"/"+f; |
751 | QString cmd="rmdir "+f; | 751 | QString cmd="rmdir "+f; |
752 | system( cmd.latin1()); | 752 | system( cmd.latin1()); |
@@ -758,10 +758,10 @@ void OpieFtp::localDelete() | |||
758 | break; | 758 | break; |
759 | }; | 759 | }; |
760 | 760 | ||
761 | } else { | 761 | } else { |
762 | switch ( QMessageBox::warning(this,"Delete","Do you really want to delete\n"+f | 762 | switch ( QMessageBox::warning(this,tr("Delete"),tr("Do you really want to delete\n")+f |
763 | +" ?","Yes","No",0,0,1) ) { | 763 | +" ?",tr("Yes"),tr("No"),0,0,1) ) { |
764 | case 0: { | 764 | case 0: { |
765 | f=currentDir.canonicalPath()+"/"+f; | 765 | f=currentDir.canonicalPath()+"/"+f; |
766 | QString cmd="rm "+f; | 766 | QString cmd="rm "+f; |
767 | system( cmd.latin1()); | 767 | system( cmd.latin1()); |
@@ -777,19 +777,19 @@ void OpieFtp::localDelete() | |||
777 | 777 | ||
778 | void OpieFtp::remoteMakDir() | 778 | void OpieFtp::remoteMakDir() |
779 | { | 779 | { |
780 | InputDialog *fileDlg; | 780 | InputDialog *fileDlg; |
781 | fileDlg = new InputDialog(this,"Make Directory",TRUE, 0); | 781 | fileDlg = new InputDialog(this,tr("Make Directory"),TRUE, 0); |
782 | fileDlg->exec(); | 782 | fileDlg->exec(); |
783 | if( fileDlg->result() == 1 ) { | 783 | if( fileDlg->result() == 1 ) { |
784 | QString filename = fileDlg->LineEdit1->text();//+".playlist"; | 784 | QString filename = fileDlg->LineEdit1->text();//+".playlist"; |
785 | QString tmp=currentRemoteDir+filename; | 785 | QString tmp=currentRemoteDir+filename; |
786 | QCopEnvelope ( "QPE/System", "busy()" ); | 786 | QCopEnvelope ( "QPE/System", "busy()" ); |
787 | if(FtpMkdir( tmp.latin1(), conn) == 0) { | 787 | if(FtpMkdir( tmp.latin1(), conn) == 0) { |
788 | QString msg; | 788 | QString msg; |
789 | msg.sprintf("Unable to make directory\n%s",FtpLastResponse(conn)); | 789 | msg.sprintf(tr("Unable to make directory\n")+"%s",FtpLastResponse(conn)); |
790 | msg.replace(QRegExp(":"),"\n"); | 790 | msg.replace(QRegExp(":"),"\n"); |
791 | QMessageBox::message("Note",msg); | 791 | QMessageBox::message(tr("Note"),msg); |
792 | } | 792 | } |
793 | QCopEnvelope ( "QPE/System", "notBusy()" ); | 793 | QCopEnvelope ( "QPE/System", "notBusy()" ); |
794 | remoteDirList( (const QString &)currentRemoteDir); //this also calls populate | 794 | remoteDirList( (const QString &)currentRemoteDir); //this also calls populate |
795 | } | 795 | } |
@@ -800,33 +800,33 @@ void OpieFtp::remoteDelete() | |||
800 | QString f = Remote_View->currentItem()->text(0); | 800 | QString f = Remote_View->currentItem()->text(0); |
801 | QCopEnvelope ( "QPE/System", "busy()" ); | 801 | QCopEnvelope ( "QPE/System", "busy()" ); |
802 | if( f.right(1) =="/") { | 802 | if( f.right(1) =="/") { |
803 | QString path= currentRemoteDir+f; | 803 | QString path= currentRemoteDir+f; |
804 | switch ( QMessageBox::warning(this,"Delete","Do you really want to delete\n"+f+"?" | 804 | switch ( QMessageBox::warning(this,tr("Delete"),tr("Do you really want to delete\n")+f+"?" |
805 | ,"Yes","No",0,0,1) ) { | 805 | ,tr("Yes"),tr("No"),0,0,1) ) { |
806 | case 0: { | 806 | case 0: { |
807 | f=currentDir.canonicalPath()+"/"+f; | 807 | f=currentDir.canonicalPath()+"/"+f; |
808 | if(FtpRmdir( path.latin1(), conn) ==0) { | 808 | if(FtpRmdir( path.latin1(), conn) ==0) { |
809 | QString msg; | 809 | QString msg; |
810 | msg.sprintf("Unable to remove directory\n%s",FtpLastResponse(conn)); | 810 | msg.sprintf(tr("Unable to remove directory\n")+"%s",FtpLastResponse(conn)); |
811 | msg.replace(QRegExp(":"),"\n"); | 811 | msg.replace(QRegExp(":"),"\n"); |
812 | QMessageBox::message("Note",msg); | 812 | QMessageBox::message(tr("Note"),msg); |
813 | } | 813 | } |
814 | remoteDirList( (const QString &)currentRemoteDir); //this also calls populate | 814 | remoteDirList( (const QString &)currentRemoteDir); //this also calls populate |
815 | 815 | ||
816 | } | 816 | } |
817 | break; | 817 | break; |
818 | }; | 818 | }; |
819 | } else { | 819 | } else { |
820 | switch ( QMessageBox::warning(this,"Delete","Do you really want to delete\n"+f+"?" | 820 | switch ( QMessageBox::warning(this,tr("Delete"),tr("Do you really want to delete\n")+f+"?" |
821 | ,"Yes","No",0,0,1) ) { | 821 | ,tr("Yes"),tr("No"),0,0,1) ) { |
822 | case 0: { | 822 | case 0: { |
823 | QString path= currentRemoteDir+f; | 823 | QString path= currentRemoteDir+f; |
824 | if(FtpDelete( path.latin1(), conn)==0) { | 824 | if(FtpDelete( path.latin1(), conn)==0) { |
825 | QString msg; | 825 | QString msg; |
826 | msg.sprintf("Unable to delete file\n%s",FtpLastResponse(conn)); | 826 | msg.sprintf(tr("Unable to delete file\n")+"%s",FtpLastResponse(conn)); |
827 | msg.replace(QRegExp(":"),"\n"); | 827 | msg.replace(QRegExp(":"),"\n"); |
828 | QMessageBox::message("Note",msg); | 828 | QMessageBox::message(tr("Note"),msg); |
829 | } | 829 | } |
830 | remoteDirList( (const QString &)currentRemoteDir); //this also calls populate | 830 | remoteDirList( (const QString &)currentRemoteDir); //this also calls populate |
831 | } | 831 | } |
832 | break; | 832 | break; |
@@ -838,20 +838,20 @@ void OpieFtp::remoteDelete() | |||
838 | void OpieFtp::remoteRename() | 838 | void OpieFtp::remoteRename() |
839 | { | 839 | { |
840 | QString curFile = Remote_View->currentItem()->text(0); | 840 | QString curFile = Remote_View->currentItem()->text(0); |
841 | InputDialog *fileDlg; | 841 | InputDialog *fileDlg; |
842 | fileDlg = new InputDialog(this,"Rename",TRUE, 0); | 842 | fileDlg = new InputDialog(this,tr("Rename"),TRUE, 0); |
843 | fileDlg->inputText = curFile; | 843 | fileDlg->inputText = curFile; |
844 | fileDlg->exec(); | 844 | fileDlg->exec(); |
845 | if( fileDlg->result() == 1 ) { | 845 | if( fileDlg->result() == 1 ) { |
846 | QString oldName = currentRemoteDir +"/"+ curFile; | 846 | QString oldName = currentRemoteDir +"/"+ curFile; |
847 | QString newName = currentRemoteDir +"/"+ fileDlg->LineEdit1->text();//+".playlist"; | 847 | QString newName = currentRemoteDir +"/"+ fileDlg->LineEdit1->text();//+".playlist"; |
848 | QCopEnvelope ( "QPE/System", "busy()" ); | 848 | QCopEnvelope ( "QPE/System", "busy()" ); |
849 | if(FtpRename( oldName.latin1(), newName.latin1(),conn) == 0) { | 849 | if(FtpRename( oldName.latin1(), newName.latin1(),conn) == 0) { |
850 | QString msg; | 850 | QString msg; |
851 | msg.sprintf("Unable to rename file\n%s",FtpLastResponse(conn)); | 851 | msg.sprintf(tr("Unable to rename file\n")+"%s",FtpLastResponse(conn)); |
852 | msg.replace(QRegExp(":"),"\n"); | 852 | msg.replace(QRegExp(":"),"\n"); |
853 | QMessageBox::message("Note",msg); | 853 | QMessageBox::message(tr("Note"),msg); |
854 | } | 854 | } |
855 | QCopEnvelope ( "QPE/System", "notBusy()" ); | 855 | QCopEnvelope ( "QPE/System", "notBusy()" ); |
856 | remoteDirList( (const QString &)currentRemoteDir); //this also calls populate | 856 | remoteDirList( (const QString &)currentRemoteDir); //this also calls populate |
857 | } | 857 | } |
@@ -860,16 +860,16 @@ void OpieFtp::remoteRename() | |||
860 | void OpieFtp::localRename() | 860 | void OpieFtp::localRename() |
861 | { | 861 | { |
862 | QString curFile = Local_View->currentItem()->text(0); | 862 | QString curFile = Local_View->currentItem()->text(0); |
863 | InputDialog *fileDlg; | 863 | InputDialog *fileDlg; |
864 | fileDlg = new InputDialog(this,"Rename",TRUE, 0); | 864 | fileDlg = new InputDialog(this,tr("Rename"),TRUE, 0); |
865 | fileDlg->inputText = curFile; | 865 | fileDlg->inputText = curFile; |
866 | fileDlg->exec(); | 866 | fileDlg->exec(); |
867 | if( fileDlg->result() == 1 ) { | 867 | if( fileDlg->result() == 1 ) { |
868 | QString oldname = currentDir.canonicalPath() + "/" + curFile; | 868 | QString oldname = currentDir.canonicalPath() + "/" + curFile; |
869 | QString newName = currentDir.canonicalPath() + "/" + fileDlg->LineEdit1->text();//+".playlist"; | 869 | QString newName = currentDir.canonicalPath() + "/" + fileDlg->LineEdit1->text();//+".playlist"; |
870 | if( rename(oldname.latin1(), newName.latin1())== -1) | 870 | if( rename(oldname.latin1(), newName.latin1())== -1) |
871 | QMessageBox::message("Note","Could not rename"); | 871 | QMessageBox::message(tr("Note"),tr("Could not rename")); |
872 | } | 872 | } |
873 | populateLocalView(); | 873 | populateLocalView(); |
874 | } | 874 | } |
875 | 875 | ||
@@ -881,9 +881,9 @@ void OpieFtp::currentPathEditChanged() | |||
881 | if(QDir( currentPathEdit->text()).exists()) { | 881 | if(QDir( currentPathEdit->text()).exists()) { |
882 | currentDir.setPath( currentPathEdit->text() ); | 882 | currentDir.setPath( currentPathEdit->text() ); |
883 | populateLocalView(); | 883 | populateLocalView(); |
884 | } else { | 884 | } else { |
885 | QMessageBox::message("Note","That directory does not exist"); | 885 | QMessageBox::message(tr("Note"),tr("That directory does not exist")); |
886 | } | 886 | } |
887 | } | 887 | } |
888 | if (TabWidget->currentPageIndex() == 1) { | 888 | if (TabWidget->currentPageIndex() == 1) { |
889 | currentRemoteDir = currentPathEdit->text(); | 889 | currentRemoteDir = currentPathEdit->text(); |
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 | |||
@@ -8,5 +8,5 @@ DESTDIR = $(OPIEDIR)/bin | |||
8 | INCLUDEPATH += $(OPIEDIR)/include | 8 | INCLUDEPATH += $(OPIEDIR)/include |
9 | DEPENDPATH += $(OPIEDIR)/include | 9 | DEPENDPATH += $(OPIEDIR)/include |
10 | LIBS += -lqpe | 10 | LIBS += -lqpe |
11 | 11 | ||
12 | TRANSLATIONS = ../../i18n/pt_BR/opieftp.ts | 12 | TRANSLATIONS += ../../i18n/pt_BR/opieftp.ts |