author | llornkcor <llornkcor> | 2002-07-21 12:52:23 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-21 12:52:23 (UTC) |
commit | 81110ef9240a746a1267ac26fee3cb3e878933b1 (patch) (side-by-side diff) | |
tree | 93c1c8fb5ded75d5c7c385d5846727874a87bbd2 | |
parent | edeab5f635166d88eee8135d982602a241240f40 (diff) | |
download | opie-81110ef9240a746a1267ac26fee3cb3e878933b1.zip opie-81110ef9240a746a1267ac26fee3cb3e878933b1.tar.gz opie-81110ef9240a746a1267ac26fee3cb3e878933b1.tar.bz2 |
tr changes
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index f97ae99..d0ccc3f 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -1222,13 +1222,13 @@ void AdvancedFm::copy() case 1: return; break; }; } if(!copyFile(destFile, curFile) ) { - QMessageBox::message("AdvancedFm","Could not copy\n"+curFile +"to\n"+destFile); + QMessageBox::message("AdvancedFm",tr("Could not copy\n")+curFile +tr("to\n")+destFile); qWarning("nothin doing"); } } populateLocalView(); TabWidget->setCurrentPage(0); @@ -1267,13 +1267,13 @@ void AdvancedFm::copyAs() case 1: return; break; }; } if(!copyFile(destFile, curFile) ) { - QMessageBox::message("AdvancedFm","Could not copy\n"+curFile +"to\n"+destFile); + QMessageBox::message("AdvancedFm",tr("Could not copy\n")+curFile +tr("to\n")+destFile); qWarning("nothin doing"); } } } populateRemoteView(); TabWidget->setCurrentPage(1); @@ -1300,13 +1300,13 @@ void AdvancedFm::copyAs() case 1: return; break; }; } if(!copyFile(destFile, curFile) ) { - QMessageBox::message("AdvancedFm","Could not copy\n"+curFile +"to\n"+destFile); + QMessageBox::message("AdvancedFm",tr("Could not copy\n")+curFile +tr("to\n")+destFile); qWarning("nothin doing"); } } } populateLocalView(); @@ -1348,13 +1348,13 @@ void AdvancedFm::copySameDir() { case 1: return; break; }; } if(!copyFile(destFile, curFile) ) { - QMessageBox::message("AdvancedFm","Could not copy\n"+curFile +"to\n"+destFile); + QMessageBox::message("AdvancedFm",tr("Could not copy\n")+curFile +tr("to\n")+destFile); qWarning("nothin doing"); } qDebug("copy "+curFile+" as "+destFile); } delete fileDlg; @@ -1385,13 +1385,13 @@ void AdvancedFm::copySameDir() { case 1: return; break; }; } if(!copyFile(destFile, curFile) ) { - QMessageBox::message("AdvancedFm","Could not copy\n"+curFile +"to\n"+destFile); + QMessageBox::message("AdvancedFm",tr("Could not copy\n")+curFile +tr("to\n")+destFile); qWarning("nothin doing"); } qDebug("copy "+curFile+" as "+destFile); } delete fileDlg; } @@ -1433,13 +1433,13 @@ void AdvancedFm::move() { break; case 1: return; break; }; if(!copyFile( destFile, curFile) ) { - QMessageBox::message(tr("Note"),tr("Could not move\n"+curFile)); + QMessageBox::message(tr("Note"),tr("Could not move\n")+curFile); return; } QFile::remove(curFile); } } TabWidget->setCurrentPage(1); @@ -1465,13 +1465,13 @@ void AdvancedFm::move() { break; case 1: return; break; }; if(!copyFile(destFile, curFile) ) { - QMessageBox::message(tr("Note"),tr("Could not move\n"+curFile)); + QMessageBox::message(tr("Note"),tr("Could not move\n")+curFile); return; } } QFile::remove(curFile); TabWidget->setCurrentPage(0); } @@ -1542,13 +1542,13 @@ void AdvancedFm::runCommand() { sleep(1); // if(command.find("2>",0,TRUE) != -1) command +=" 2>&1"; fp = popen( (const char *) command, "r"); if ( !fp ) { qDebug("Could not execute '" + command + "'! err=%d", fp); - QMessageBox::warning( this, tr("AdvancedFm"), tr("command failed!"), tr("&OK") ); + QMessageBox::warning( this, "AdvancedFm", tr("command failed!"), tr("&OK") ); pclose(fp); return; } else { while ( fgets( line, sizeof line, fp)) { QString lineStr = line; lineStr=lineStr.left(lineStr.length()-1); @@ -1598,13 +1598,13 @@ void AdvancedFm::fileStatus() { FILE *fp; char line[130]; sleep(1); fp = popen( (const char *) command, "r"); if ( !fp ) { qDebug("Could not execute '" + command + "'! err=%d", fp); - QMessageBox::warning( this, tr("AdvancedFm"), tr("command failed!"), tr("&OK") ); + QMessageBox::warning( this, "AdvancedFm", tr("command failed!"), tr("&OK") ); pclose(fp); return; } else { while ( fgets( line, sizeof line, fp)) { outDlg->OutputEdit->append(line); outDlg->OutputEdit->setCursorPosition(outDlg->OutputEdit->numLines() + 1,0,FALSE); @@ -1635,16 +1635,16 @@ void AdvancedFm::del() { localDelete(); else remoteDelete(); } void AdvancedFm::doAbout() { - QMessageBox::message("AdvancedFm","Advanced FileManager\n" + QMessageBox::message("AdvancedFm",tr("Advanced FileManager\n" "is copyright 2002 by\n" "L.J.Potter<llornkcor@handhelds.org>\n" - "and is licensed by the GPL"); + "and is licensed by the GPL")); } void AdvancedFm::keyReleaseEvent( QKeyEvent *e) { if( TabWidget->hasFocus()) switch ( e->key() ) { @@ -1799,12 +1799,15 @@ QString AdvancedFm::getFileSystemType(const QString ¤tText) { return temp.right( temp.length() - temp.find("::",0,TRUE) - 2); } } return baseFs; } +QString AdvancedFm::getDiskSpace( const QString &) { + +} void AdvancedFm::doBeam() { Ir ir; if(!ir.supported()){ } else { @@ -1919,12 +1922,13 @@ void AdvancedFm::showFileMenu() { m->insertItem( tr( "Delete" ), this, SLOT( localDelete() )); else m->insertItem( tr( "Delete" ), this, SLOT( remoteDelete() )); m->insertSeparator(); m->insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() )); + if( QFile(QPEApplication::qpeDir()+"lib/libopie.so").exists() ) //bad hack for Sharp zaurus failings m->insertItem( tr( "Properties" ), this, SLOT( doProperties() )); m->setCheckable(TRUE); if (!b) m->setItemChecked(m->idAt(0),TRUE); else |