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 | 114 |
1 files changed, 59 insertions, 55 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 @@ -1227,3 +1227,3 @@ void AdvancedFm::copy() 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); @@ -1272,3 +1272,3 @@ void AdvancedFm::copyAs() 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"); @@ -1305,3 +1305,3 @@ void AdvancedFm::copyAs() 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"); @@ -1353,3 +1353,3 @@ void AdvancedFm::copySameDir() { 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"); @@ -1390,3 +1390,3 @@ void AdvancedFm::copySameDir() { 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"); @@ -1438,3 +1438,3 @@ void AdvancedFm::move() { 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; @@ -1470,3 +1470,3 @@ void AdvancedFm::move() { 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; @@ -1547,3 +1547,3 @@ void AdvancedFm::runCommand() { 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); @@ -1603,3 +1603,3 @@ void AdvancedFm::fileStatus() { 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); @@ -1640,6 +1640,6 @@ void AdvancedFm::del() { 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")); } @@ -1804,2 +1804,5 @@ QString AdvancedFm::getFileSystemType(const QString ¤tText) { +QString AdvancedFm::getDiskSpace( const QString &) { + +} @@ -1870,3 +1873,3 @@ void AdvancedFm::showFileMenu() { -// QPopupMenu m; + // QPopupMenu m; QPopupMenu *m = new QPopupMenu(0); @@ -1886,53 +1889,54 @@ void AdvancedFm::showFileMenu() { } - m->insertSeparator(); + m->insertSeparator(); - if(isLocalView) - m->insertItem( tr( "Make Directory" ), this, SLOT( localMakDir() )); - else - m->insertItem( tr( "Make Directory" ), this, SLOT( remoteMakDir() )); + if(isLocalView) + m->insertItem( tr( "Make Directory" ), this, SLOT( localMakDir() )); + else + m->insertItem( tr( "Make Directory" ), this, SLOT( remoteMakDir() )); - m->insertItem( tr( "Make Symlink" ), this, SLOT( mkSym() )); - m->insertSeparator(); + m->insertItem( tr( "Make Symlink" ), this, SLOT( mkSym() )); + m->insertSeparator(); - if(isLocalView) - m->insertItem( tr( "Rename" ), this, SLOT( localRename() )); - else - m->insertItem( tr( "Rename" ), this, SLOT( remoteRename() )); + if(isLocalView) + m->insertItem( tr( "Rename" ), this, SLOT( localRename() )); + else + m->insertItem( tr( "Rename" ), this, SLOT( remoteRename() )); + + m->insertItem( tr( "Copy" ), this, SLOT( copy() )); + m->insertItem( tr( "Copy As" ), this, SLOT( copyAs() )); + m->insertItem( tr( "Copy Same Dir" ), this, SLOT( copySameDir() )); + m->insertItem( tr( "Move" ), this, SLOT( move() )); + m->insertSeparator(); - m->insertItem( tr( "Copy" ), this, SLOT( copy() )); - m->insertItem( tr( "Copy As" ), this, SLOT( copyAs() )); - m->insertItem( tr( "Copy Same Dir" ), this, SLOT( copySameDir() )); - m->insertItem( tr( "Move" ), this, SLOT( move() )); - m->insertSeparator(); + if(isLocalView) + m->insertItem( tr( "Rescan" ), this, SLOT( populateLocalView() )); + else + m->insertItem( tr( "Rescan" ), this, SLOT( populateRemoteView() )); - if(isLocalView) - m->insertItem( tr( "Rescan" ), this, SLOT( populateLocalView() )); - else - m->insertItem( tr( "Rescan" ), this, SLOT( populateRemoteView() )); + m->insertItem( tr( "Run Command" ), this, SLOT( runCommand() )); + m->insertItem( tr( "File Info" ), this, SLOT( fileStatus() )); + m->insertSeparator(); - m->insertItem( tr( "Run Command" ), this, SLOT( runCommand() )); - m->insertItem( tr( "File Info" ), this, SLOT( fileStatus() )); - m->insertSeparator(); + if(isLocalView) + m->insertItem( tr( "Delete" ), this, SLOT( localDelete() )); + else + m->insertItem( tr( "Delete" ), this, SLOT( remoteDelete() )); - if(isLocalView) - 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 - m->setItemChecked(m->idAt(0),FALSE); - if(Ir::supported()) - m->insertItem( tr( "Beam File" ), this, SLOT( doBeam() )); - m->setFocus(); - m->exec( QCursor::pos() ); - sleep(1); - if(m) delete m; + 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 + m->setItemChecked(m->idAt(0),FALSE); + if(Ir::supported()) + m->insertItem( tr( "Beam File" ), this, SLOT( doBeam() )); + m->setFocus(); + m->exec( QCursor::pos() ); + sleep(1); + if(m) delete m; } |